mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 18:47:20 +01:00
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,13 +162,7 @@ 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user