From 0efc0b965b7d4268a60a27d8d62cd275996e0240 Mon Sep 17 00:00:00 2001 From: "main()" Date: Sun, 4 Mar 2012 19:53:40 +0100 Subject: [PATCH] Fixed removeWorldFromConfig(String). --- .../onarandombox/MultiverseCore/utils/WorldManager.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java index 94d2087e..f832d48f 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java @@ -169,15 +169,11 @@ public class WorldManager implements MVWorldManager { if (!unloadWorld(name)) { return false; } - if (this.configWorlds.get("worlds." + name) != null) { + if (this.worldsFromTheConfig.containsKey(name)) { + this.worldsFromTheConfig.remove(name); this.plugin.log(Level.INFO, "World '" + name + "' was removed from config.yml"); - this.configWorlds.set("worlds." + name, null); this.saveWorldsConfig(); - // Remove it from the list of worlds. - if (this.worldsFromTheConfig.containsKey(name)) { - this.worldsFromTheConfig.remove(name); - } return true; } else { this.plugin.log(Level.INFO, "World '" + name + "' was already removed from config.yml");