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

Performance

This commit is contained in:
Daniel Mills
2021-01-08 02:50:35 -05:00
parent b6f3e3a62f
commit 91e1b614f3
11 changed files with 33 additions and 95 deletions

View File

@@ -3,7 +3,6 @@ package com.volmit.iris.manager;
import com.google.gson.Gson;
import com.volmit.iris.Iris;
import com.volmit.iris.IrisSettings;
import com.volmit.iris.nms.INMS;
import com.volmit.iris.object.*;
import com.volmit.iris.scaffold.IrisWorldCreator;
import com.volmit.iris.scaffold.engine.IrisAccess;
@@ -171,7 +170,7 @@ public class IrisProject
});
//@builder
World world = INMS.get().createWorld(c, false);
World world = c.createWorld();
Iris.linkMultiverseCore.removeFromConfig(world);
done.set(true);

View File

@@ -1,9 +1,9 @@
package com.volmit.iris.manager.command;
import com.volmit.iris.Iris;
import com.volmit.iris.IrisSettings;
import com.volmit.iris.manager.IrisDataManager;
import com.volmit.iris.manager.link.MultiverseCoreLink;
import com.volmit.iris.nms.INMS;
import com.volmit.iris.object.IrisDimension;
import com.volmit.iris.pregen.Pregenerator;
import com.volmit.iris.scaffold.IrisWorldCreator;
@@ -40,7 +40,7 @@ public class CommandIrisCreate extends MortarCommand
}
String worldName = args[0];
String type = "overworld";
String type = IrisSettings.get().getGenerator().getDefaultWorldType();
long seed = 1337;
int pregen = 0;
boolean multiverse = Iris.linkMultiverseCore.supported();
@@ -59,6 +59,13 @@ public class CommandIrisCreate extends MortarCommand
if(multiverse)
{
dim = IrisDataManager.loadAnyDimension(type);
if(dim == null)
{
sender.sendMessage("Cant find dimension type: " + type);
return true;
}
if(dim.getEnvironment() == null)
{
dim.setEnvironment(World.Environment.NORMAL);
@@ -71,7 +78,7 @@ public class CommandIrisCreate extends MortarCommand
String command = "mv create " + worldName + " " + Iris.linkMultiverseCore.envName(dim.getEnvironment());
command += " -s " + seed;
command += " -g Iris";
command += " -g Iris:" + dim.getLoadKey();
sender.sendMessage("Delegating " + command);
Bukkit.dispatchCommand(sender, command);
world= Bukkit.getWorld(worldName);
@@ -121,7 +128,7 @@ public class CommandIrisCreate extends MortarCommand
}
});
world = INMS.get().createWorld(wc, false);
world = wc.createWorld();
done.set(true);
}