Fix reference to old edit world being kept

This commit is contained in:
Daniel Saukel 2020-03-25 16:52:20 +01:00
parent 37e07accd9
commit 74ede6d392
2 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,7 @@ public class DEditWorld extends DInstanceWorld implements EditWorld {
}
FileUtil.removeDir(getFolder());
getResource().editWorld = null;
plugin.getInstanceCache().remove(this);
}

View File

@ -47,7 +47,7 @@ public class DResourceWorld implements ResourceWorld {
private File folder;
private WorldConfig config;
private SignData signData;
private EditWorld editWorld;
EditWorld editWorld;
public DResourceWorld(DungeonsXL plugin, String name) {
this.plugin = plugin;