mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix /dxl rename NPE; resolves #752
This commit is contained in:
parent
274b287195
commit
e4ad18e4ba
@ -66,6 +66,9 @@ public class RenameCommand extends DCommand {
|
||||
}
|
||||
|
||||
for (Dungeon dungeon : plugin.getDungeonRegistry()) {
|
||||
if (!dungeon.isMultiFloor()) {
|
||||
continue;
|
||||
}
|
||||
DungeonConfig dConfig = ((DDungeon) dungeon).getConfig();
|
||||
FileConfiguration config = dConfig.getConfig();
|
||||
File file = dConfig.getFile();
|
||||
|
Loading…
Reference in New Issue
Block a user