mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix /dxl edit before newly created map was saved; resolves #831
This commit is contained in:
parent
4350eb8556
commit
fbb08ac232
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user