diff --git a/MobArena.jar b/MobArena.jar index 5e04d29..8980e6b 100644 Binary files a/MobArena.jar and b/MobArena.jar differ diff --git a/src/com/garbagemule/MobArena/MAUtils.java b/src/com/garbagemule/MobArena/MAUtils.java index fa56d81..c9ec177 100644 --- a/src/com/garbagemule/MobArena/MAUtils.java +++ b/src/com/garbagemule/MobArena/MAUtils.java @@ -250,12 +250,11 @@ public class MAUtils { String arenaPath = "arenas." + arena + ".waves." + wave; Map result = new HashMap(); - List dists = config.getKeys(arenaPath); + List dists = (config.getKeys(arenaPath) != null) ? config.getKeys(arenaPath) : new LinkedList(); - boolean update = false; String[] monsters = (wave.equals("default")) ? new String[]{"zombies", "skeletons", "spiders", "creepers", "wolves"} : new String[]{"powered-creepers", "zombie-pigmen", "slimes", "humans", "angry-wolves", "giants", "ghasts"}; - + boolean update = false; for (String monster : monsters) { if (dists.contains(monster))