mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-26 19:18:47 +01:00
Sorted out NPE with distributions
This commit is contained in:
parent
397a17a185
commit
620ee884cb
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -250,12 +250,11 @@ public class MAUtils
|
||||
{
|
||||
String arenaPath = "arenas." + arena + ".waves." + wave;
|
||||
Map<String,Integer> result = new HashMap<String,Integer>();
|
||||
List<String> dists = config.getKeys(arenaPath);
|
||||
List<String> dists = (config.getKeys(arenaPath) != null) ? config.getKeys(arenaPath) : new LinkedList<String>();
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user