Fix world create commands & pregnes

This commit is contained in:
Daniel Mills
2021-08-10 08:46:27 -04:00
parent 9453b86907
commit bd8d9cc3aa
4 changed files with 127 additions and 322 deletions

View File

@@ -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);