mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-18 08:35:52 +01:00
Merge pull request #1030 from goweiwen/fix-multifloor-dungeon-npe
Properly initialize dungeon in DGame constructor
This commit is contained in:
commit
a767254645
@ -64,7 +64,8 @@ public class DGame implements Game {
|
||||
this.plugin = plugin;
|
||||
plugin.getGameCache().add(this);
|
||||
|
||||
this.dungeon = dungeon;
|
||||
setDungeon(dungeon);
|
||||
|
||||
if (this.dungeon == null) {
|
||||
throw new IllegalStateException("Game initialized without dungeon");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user