This commit is contained in:
DanLT 2021-06-22 09:26:00 -08:00
parent b48a913fbf
commit b59278601c

View File

@ -323,18 +323,25 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
return; return;
} }
initialized.set(true);
System.out.println("INIT Get Dim"); try
{
IrisDimension dim = getDimension(world); IrisDimension dim = getDimension(world);
IrisDataManager data = production ? new IrisDataManager(getDataFolder(world)) : dim.getLoader().copy(); IrisDataManager data = production ? new IrisDataManager(getDataFolder(world)) : dim.getLoader().copy();
compound = new IrisEngineCompound(world, dim, data, Iris.getThreadCount()); compound = new IrisEngineCompound(world, dim, data, Iris.getThreadCount());
compound.setStudio(!production); compound.setStudio(!production);
initialized.set(true);
populators.clear(); populators.clear();
populators.addAll(compound.getPopulators()); populators.addAll(compound.getPopulators());
hotloader = new ReactiveFolder(data.getDataFolder(), (a, c, d) -> hotload()); hotloader = new ReactiveFolder(data.getDataFolder(), (a, c, d) -> hotload());
} }
catch(Throwable e)
{
e.printStackTrace();
Iris.error("FAILED TO INITIALIZE DIMENSION FROM " + world.toString());
}
}
private File getDataFolder(World world) { private File getDataFolder(World world) {
return new File(world.getWorldFolder(), "iris/pack"); return new File(world.getWorldFolder(), "iris/pack");
} }