From 74ede6d3920921c9f705877b0715893b30d22dd3 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Wed, 25 Mar 2020 16:52:20 +0100 Subject: [PATCH] Fix reference to old edit world being kept --- core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java | 1 + .../main/java/de/erethon/dungeonsxl/world/DResourceWorld.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java b/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java index d5bbf087..b6e8e28b 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java +++ b/core/src/main/java/de/erethon/dungeonsxl/world/DEditWorld.java @@ -123,6 +123,7 @@ public class DEditWorld extends DInstanceWorld implements EditWorld { } FileUtil.removeDir(getFolder()); + getResource().editWorld = null; plugin.getInstanceCache().remove(this); } diff --git a/core/src/main/java/de/erethon/dungeonsxl/world/DResourceWorld.java b/core/src/main/java/de/erethon/dungeonsxl/world/DResourceWorld.java index 846fa755..a33b4986 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/world/DResourceWorld.java +++ b/core/src/main/java/de/erethon/dungeonsxl/world/DResourceWorld.java @@ -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;