mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-06 00:08:11 +01:00
Fix import command NPE; resolves #863
This commit is contained in:
parent
87fad40095
commit
3ee64194fc
@ -73,7 +73,7 @@ public class ImportCommand extends DCommand {
|
||||
|
||||
DResourceWorld resource = new DResourceWorld(plugin, args[1]);
|
||||
plugin.getDungeonRegistry().add(args[1], new DDungeon(plugin, resource));
|
||||
if (world.getEnvironment() != Environment.NORMAL) {
|
||||
if (world != null && world.getEnvironment() != Environment.NORMAL) {
|
||||
WorldConfig config = resource.getConfig(true);
|
||||
config.setWorldEnvironment(world.getEnvironment());
|
||||
config.save();
|
||||
|
Loading…
Reference in New Issue
Block a user