mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 15:57:38 +00:00
Fix world create commands & pregnes
This commit is contained in:
1 parent
9453b86907
commit
bd8d9cc3aa
4 files changed
+127
-322
No files matched your search
@@ -42,6 +42,12 @@ public class EngineProvider {
|
||||
engine.set(MultiBurst.burst.completeValue(() -> {
|
||||
IrisData data = new IrisData(dataLocation);
|
||||
IrisDimension realDimension = data.getDimensionLoader().load(dimension);
|
||||
|
||||
if(realDimension == null)
|
||||
{
|
||||
throw new RuntimeException("Cannot find dimension in " + data.getDataFolder().getAbsolutePath() + " with key " + dimension);
|
||||
}
|
||||
|
||||
EngineTarget target = new EngineTarget(world, realDimension, data);
|
||||
Engine engine = new IrisEngine(target, studio);
|
||||
post.accept(engine);
|
||||
|
||||
Reference in new issue
Block a user