diff --git a/src/com/onarandombox/MultiverseCore/MVWorld.java b/src/com/onarandombox/MultiverseCore/MVWorld.java index b7bca350..988cde96 100644 --- a/src/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/com/onarandombox/MultiverseCore/MVWorld.java @@ -50,6 +50,7 @@ public class MVWorld { this.generator = world.getGenerator(); this.generatorString = generatorString; this.seed = seed; + this.environment = world.getEnvironment(); this.initLists(); @@ -78,7 +79,7 @@ public class MVWorld { this.setRealMobBehaviors(); - config.setProperty("worlds." + this.name + ".environment", world.getEnvironment()); + config.setProperty("worlds." + this.name + ".environment", this.environment); config.setProperty("worlds." + this.name + ".generatorString",generatorString); if (seed != null) { config.setProperty("worlds." + this.name + ".seed", this.seed); diff --git a/src/com/onarandombox/MultiverseCore/MultiverseCore.java b/src/com/onarandombox/MultiverseCore/MultiverseCore.java index 78d8bc5f..c27fb8ff 100644 --- a/src/com/onarandombox/MultiverseCore/MultiverseCore.java +++ b/src/com/onarandombox/MultiverseCore/MultiverseCore.java @@ -393,7 +393,7 @@ public class MultiverseCore extends JavaPlugin { public boolean addWorld(String name, Environment env, String seedString, String generator) { Long seed = null; - if (seedString.length() > 0) { + if (seedString != null && seedString.length() > 0) { try { seed = Long.parseLong(seedString); } catch (NumberFormatException numberformatexception) {