From b345baf20e39a6c4290efbf05090856d42fff9ad Mon Sep 17 00:00:00 2001 From: benwoo1110 Date: Tue, 6 Oct 2020 21:12:18 +0800 Subject: [PATCH] Remove uneeded variables from clone method --- .../MultiverseCore/utils/WorldManager.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java index c0b89334..4907a22b 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java @@ -140,7 +140,7 @@ public class WorldManager implements MVWorldManager { // Make sure the new world doesn't exist outside of multiverse. if (newWorldFile.exists()) { - Logging.warning("File for new world '%s' already exists", newName); + Logging.warning("Folder for new world '%s' already exists", newName); return false; } @@ -162,14 +162,8 @@ public class WorldManager implements MVWorldManager { } // Grab a bit of metadata from the old world. - MVWorld oldWorld = (MVWorld) getMVWorld(oldName); - Environment environment = oldWorld.getEnvironment(); - String seedString = oldWorld.getSeed() + ""; - WorldType worldType = oldWorld.getWorldType(); - Boolean generateStructures = oldWorld.getCBWorld().canGenerateStructures(); - String generator = oldWorld.getGenerator(); - boolean useSpawnAdjust = oldWorld.getAdjustSpawn(); - + MultiverseWorld oldWorld = getMVWorld(oldName); + // Don't need the loaded world anymore. if (wasJustLoaded) { this.unloadWorld(oldName, true);