Fix /dxl edit before newly created map was saved; resolves #831

This commit is contained in:
Daniel Saukel 2020-06-23 22:55:31 +02:00
parent 4350eb8556
commit fbb08ac232

View File

@ -239,7 +239,7 @@ public class DResourceWorld implements ResourceWorld {
return null; return null;
} }
this.editWorld = (EditWorld) instantiate(false); editWorld = (EditWorld) instantiate(false);
return editWorld; return editWorld;
} }
@ -282,6 +282,7 @@ public class DResourceWorld implements ResourceWorld {
creator.generateStructures(false); creator.generateStructures(false);
DEditWorld editWorld = new DEditWorld(plugin, this, folder); DEditWorld editWorld = new DEditWorld(plugin, this, folder);
this.editWorld = editWorld;
EditWorldGenerateEvent event = new EditWorldGenerateEvent(editWorld); EditWorldGenerateEvent event = new EditWorldGenerateEvent(editWorld);
Bukkit.getPluginManager().callEvent(event); Bukkit.getPluginManager().callEvent(event);