Remove uneeded variables from clone method
This commit is contained in:
parent
1c02fb4387
commit
b345baf20e
|
@ -140,7 +140,7 @@ public class WorldManager implements MVWorldManager {
|
||||||
|
|
||||||
// Make sure the new world doesn't exist outside of multiverse.
|
// Make sure the new world doesn't exist outside of multiverse.
|
||||||
if (newWorldFile.exists()) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,14 +162,8 @@ public class WorldManager implements MVWorldManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grab a bit of metadata from the old world.
|
// Grab a bit of metadata from the old world.
|
||||||
MVWorld oldWorld = (MVWorld) getMVWorld(oldName);
|
MultiverseWorld oldWorld = 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();
|
|
||||||
|
|
||||||
// Don't need the loaded world anymore.
|
// Don't need the loaded world anymore.
|
||||||
if (wasJustLoaded) {
|
if (wasJustLoaded) {
|
||||||
this.unloadWorld(oldName, true);
|
this.unloadWorld(oldName, true);
|
||||||
|
|
Loading…
Reference in New Issue