mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +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());
|
||||
} else if (map.getRules() != null) {
|
||||
rules = new GameRuleContainer(map.getRules());
|
||||
} else {
|
||||
rules = new GameRuleContainer();
|
||||
}
|
||||
rules.merge(plugin.getMainConfig().getDefaultWorldConfig());
|
||||
rules.merge(GameRuleContainer.DEFAULT_VALUES);
|
||||
|
Loading…
Reference in New Issue
Block a user