mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +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()) {
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user