mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Iris Create / Project Load/Create skipLoadSpawn
This commit is contained in:
parent
b774b6920d
commit
bf91156182
@ -3,6 +3,7 @@ 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;
|
||||
@ -14,6 +15,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.craftbukkit.v1_17_R1.CraftServer;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.zeroturnaround.zip.ZipUtil;
|
||||
@ -190,7 +192,7 @@ public class IrisProject
|
||||
});
|
||||
|
||||
//@builder
|
||||
World world = c.createWorld();
|
||||
World world = INMS.get().createWorld(c);
|
||||
Iris.linkMultiverseCore.removeFromConfig(world);
|
||||
|
||||
done.set(true);
|
||||
|
@ -4,6 +4,7 @@ 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;
|
||||
@ -161,7 +162,7 @@ public class CommandIrisCreate extends MortarCommand
|
||||
|
||||
dim = Iris.proj.installIntoWorld(sender, type, folder);
|
||||
|
||||
WorldCreator wc = new IrisWorldCreator().dimension(dim).name(worldName)
|
||||
WorldCreator wc = new IrisWorldCreator().dimension(dim.getLoadKey()).name(worldName)
|
||||
.productionMode().seed(seed).create();
|
||||
|
||||
J.s(() -> {
|
||||
@ -194,7 +195,7 @@ public class CommandIrisCreate extends MortarCommand
|
||||
}
|
||||
});
|
||||
|
||||
world.set(wc.createWorld());
|
||||
world.set(INMS.get().createWorld(wc));
|
||||
|
||||
done.set(true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user