mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-02 16:59:56 +01:00
Fix seed not being added
Remove test methods Bits of refactoring
This commit is contained in:
parent
c668bdb4f5
commit
20c3b516cc
@ -77,10 +77,14 @@ public class MVWorld {
|
||||
System.out.print(s);
|
||||
}
|
||||
config.setProperty("worlds." + this.name + ".environment", this.environment.toString());
|
||||
config.save();
|
||||
if (config.getIntList("worlds." + name + ".blockBlacklist", new ArrayList<Integer>()).size() == 0) {
|
||||
addSampleData();
|
||||
if(seed != null) {
|
||||
config.setProperty("worlds." + this.name + ".seed", this.seed);
|
||||
}
|
||||
config.save();
|
||||
// The following 3 lines will add some sample data to new worlds created.
|
||||
// if (config.getIntList("worlds." + name + ".blockBlacklist", new ArrayList<Integer>()).size() == 0) {
|
||||
// addSampleData();
|
||||
// }
|
||||
}
|
||||
|
||||
private void initLists() {
|
||||
|
@ -425,15 +425,9 @@ public class MultiverseCore extends JavaPlugin {
|
||||
if (seed != null) {
|
||||
World world = getServer().createWorld(name, environment, seed);
|
||||
worlds.put(name, new MVWorld(world, configWorlds, this, seed)); // Place the World into the HashMap.
|
||||
// configWorlds.setProperty("worlds." + world.getName() + ".environment", environment.toString());
|
||||
// configWorlds.save();
|
||||
System.out.print("Seed - " + getSeed(world));
|
||||
} else {
|
||||
World world = getServer().createWorld(name, environment);
|
||||
worlds.put(name, new MVWorld(world, configWorlds, this, null)); // Place the World into the HashMap.
|
||||
// configWorlds.setProperty("worlds." + world.getName() + ".environment", environment.toString());
|
||||
// configWorlds.save();
|
||||
System.out.print("Seed - " + getSeed(world));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user