9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

Multiverse Support

This commit is contained in:
Daniel Mills
2020-09-02 13:47:20 -04:00
parent ea5dd69719
commit 4a98fb6c9d
4 changed files with 127 additions and 12 deletions

View File

@@ -358,6 +358,8 @@ public class ProjectManager
});
World world = Bukkit.createWorld(new WorldCreator("iris/" + UUID.randomUUID()).seed(1337).generator(gx).generateStructures(false).type(WorldType.NORMAL).environment(d.getEnvironment()));
Iris.linkMultiverseCore.removeFromConfig(world);
done.set(true);
sender.sendMessage("Generating 100%");
@@ -385,6 +387,7 @@ public class ProjectManager
{
currentProject.close();
File folder = currentProject.getWorld().getWorldFolder();
Iris.linkMultiverseCore.removeFromConfig(currentProject.getWorld());
Bukkit.unloadWorld(currentProject.getWorld(), false);
currentProject = null;
Iris.globaldata.dump();