From 682c405609ca764486ea0d6223bf554c16e94c76 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 30 Apr 2019 00:44:16 +0200 Subject: [PATCH] Removed issue from WorldConfig --- src/main/java/de/butzlabben/world/config/WorldConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/butzlabben/world/config/WorldConfig.java b/src/main/java/de/butzlabben/world/config/WorldConfig.java index 3320f22..b0d727b 100644 --- a/src/main/java/de/butzlabben/world/config/WorldConfig.java +++ b/src/main/java/de/butzlabben/world/config/WorldConfig.java @@ -23,6 +23,8 @@ import java.util.*; @SuppressWarnings("ResultOfMethodCallIgnored") public class WorldConfig { + private static final HashMap instances = new HashMap<>(); + public static File getWorldFile(String worldname) { File worldconfig = new File(Bukkit.getWorldContainer(), worldname + "/worldconfig.yml"); if (!worldconfig.exists()) { @@ -44,8 +46,6 @@ public class WorldConfig { return getWorldFile(worldname).exists(); } - private static final HashMap instances = new HashMap<>(); - /** * Gets the worldconfig for a specific worldname or creates a new one of no * exists