minimap tweaks
This commit is contained in:
@@ -85,7 +85,7 @@ public abstract class BusEvent<HANDLER> {
|
||||
*
|
||||
* @return true if consumed
|
||||
*/
|
||||
final boolean isConsumed()
|
||||
public final boolean isConsumed()
|
||||
{
|
||||
return consumed;
|
||||
}
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user