Fix /dxl rename NPE; resolves #752

This commit is contained in:
Daniel Saukel 2020-06-24 00:32:52 +02:00
parent 274b287195
commit e4ad18e4ba

View File

@ -66,6 +66,9 @@ public class RenameCommand extends DCommand {
} }
for (Dungeon dungeon : plugin.getDungeonRegistry()) { for (Dungeon dungeon : plugin.getDungeonRegistry()) {
if (!dungeon.isMultiFloor()) {
continue;
}
DungeonConfig dConfig = ((DDungeon) dungeon).getConfig(); DungeonConfig dConfig = ((DDungeon) dungeon).getConfig();
FileConfiguration config = dConfig.getConfig(); FileConfiguration config = dConfig.getConfig();
File file = dConfig.getFile(); File file = dConfig.getFile();