From 41715f37b0da42ccaf3ddec2185a2eae2bea86af Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 1 May 2020 00:36:18 +0200 Subject: [PATCH] Don't save world that is already being saved --- .../src/main/java/de/erethon/dungeonsxl/player/DEditPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DEditPlayer.java b/core/src/main/java/de/erethon/dungeonsxl/player/DEditPlayer.java index 0a1e73cb..356072a2 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DEditPlayer.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DEditPlayer.java @@ -143,7 +143,7 @@ public class DEditPlayer extends DInstancePlayer implements EditPlayer { reset(false); - if (editWorld != null && editWorld.getPlayers().isEmpty()) { + if (!plugin.isLoadingWorld() && editWorld != null && editWorld.getPlayers().isEmpty()) { editWorld.save(); } }