mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix potential dungeon game rule NPE
This commit is contained in:
parent
5fb6aba071
commit
929a87ac68
@ -187,6 +187,8 @@ public class DDungeon implements Dungeon {
|
|||||||
rules.merge(getDefaultValues());
|
rules.merge(getDefaultValues());
|
||||||
} else if (map.getRules() != null) {
|
} else if (map.getRules() != null) {
|
||||||
rules = new GameRuleContainer(map.getRules());
|
rules = new GameRuleContainer(map.getRules());
|
||||||
|
} else {
|
||||||
|
rules = new GameRuleContainer();
|
||||||
}
|
}
|
||||||
rules.merge(plugin.getMainConfig().getDefaultWorldConfig());
|
rules.merge(plugin.getMainConfig().getDefaultWorldConfig());
|
||||||
rules.merge(GameRuleContainer.DEFAULT_VALUES);
|
rules.merge(GameRuleContainer.DEFAULT_VALUES);
|
||||||
|
Loading…
Reference in New Issue
Block a user