minimap tweaks

This commit is contained in:
ondra
2014-04-26 15:54:26 +02:00
parent 84ef9fb9fe
commit 38727fad71
26 changed files with 156 additions and 94 deletions
@@ -85,7 +85,7 @@ public abstract class BusEvent<HANDLER> {
*
* @return true if consumed
*/
final boolean isConsumed()
public final boolean isConsumed()
{
return consumed;
}
+1 -1
View File
@@ -616,7 +616,7 @@ public class Calc {
* @param list list of choices
* @return picked element
*/
public static Object pick(List<?> list)
public static <T> T pick(List<T> list)
{
if (list.size() == 0) return null;
return list.get(rand.nextInt(list.size()));