mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-02 21:51:24 +01:00
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:
parent
3856d6777c
commit
78d2d242f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user