mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Fix world create commands & pregnes
This commit is contained in:
@@ -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