mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
tc init
This commit is contained in:
parent
b48a913fbf
commit
b59278601c
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user