Fix potential dungeon game rule NPE

This commit is contained in:
Daniel Saukel 2020-03-18 19:33:06 +01:00
parent 5fb6aba071
commit 929a87ac68

View File

@ -187,6 +187,8 @@ public class DDungeon implements Dungeon {
rules.merge(getDefaultValues());
} else if (map.getRules() != null) {
rules = new GameRuleContainer(map.getRules());
} else {
rules = new GameRuleContainer();
}
rules.merge(plugin.getMainConfig().getDefaultWorldConfig());
rules.merge(GameRuleContainer.DEFAULT_VALUES);