mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-04 17:59:31 +01:00
Fix announcement NPE
This commit is contained in:
parent
b45fd2101c
commit
d5a6d318e5
@ -76,6 +76,8 @@ public class AnnouncerStartGameTask extends BukkitRunnable {
|
||||
continue;
|
||||
}
|
||||
|
||||
dGroup.setDungeon(announcer.getDungeonName() == null ? announcer.getMapName() : announcer.getDungeonName());
|
||||
|
||||
if (game == null) {
|
||||
ResourceWorld resource = plugin.getMapRegistry().get(announcer.getMapName());
|
||||
if (resource == null) {
|
||||
@ -94,7 +96,6 @@ public class AnnouncerStartGameTask extends BukkitRunnable {
|
||||
game.addGroup(dGroup);
|
||||
}
|
||||
|
||||
dGroup.setDungeon(announcer.getDungeonName() == null ? announcer.getMapName() : announcer.getDungeonName());
|
||||
dGroup.setGameWorld(game.getWorld());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user