mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 20:19:06 +00:00
Locking
This commit is contained in:
@@ -2,6 +2,7 @@ package com.volmit.iris.manager.command;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
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;
|
||||
@@ -58,6 +59,16 @@ public class CommandIrisCreate extends MortarCommand
|
||||
if(multiverse)
|
||||
{
|
||||
dim = IrisDataManager.loadAnyDimension(type);
|
||||
if(dim.getEnvironment() == null)
|
||||
{
|
||||
dim.setEnvironment(World.Environment.NORMAL);
|
||||
}
|
||||
|
||||
if(Iris.linkMultiverseCore == null)
|
||||
{
|
||||
Iris.linkMultiverseCore = new MultiverseCoreLink();
|
||||
}
|
||||
|
||||
String command = "mv create " + worldName + " " + Iris.linkMultiverseCore.envName(dim.getEnvironment());
|
||||
command += " -s " + seed;
|
||||
command += " -g Iris";
|
||||
|
||||
@@ -133,6 +133,11 @@ public class MultiverseCoreLink
|
||||
}
|
||||
|
||||
public String envName(World.Environment environment) {
|
||||
if(environment == null)
|
||||
{
|
||||
return "normal";
|
||||
}
|
||||
|
||||
switch(environment)
|
||||
{
|
||||
case NORMAL:
|
||||
|
||||
Reference in New Issue
Block a user