Support for the new UUID Duplicate checks, createWorld can now return null if the world was a duplicate of an already loaded world.

This commit is contained in:
Rigby 2011-07-13 11:32:40 +01:00
parent 3856d6777c
commit 78d2d242f2

View File

@ -303,6 +303,12 @@ public class MultiverseCore extends JavaPlugin {
log(Level.INFO, "Loading World & Settings - '" + name + "' - " + env);
}
}
if (world == null) {
log(Level.SEVERE, "Failed to Create/Load the world '" + name + "'");
return false;
}
MVWorld mvworld = new MVWorld(world, this.configWorlds, this, seed, generator);
this.worldPurger.purgeWorld(null, mvworld);
this.worlds.put(name, mvworld);