mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 02:03:59 +00:00
Hotloader improvements
This commit is contained in:
parent
6b97acdb50
commit
668d29a9d7
@ -59,7 +59,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
||||
super(engine);
|
||||
spawnCooldowns = new KMap<>();
|
||||
spawnable = true;
|
||||
art = J.ar(this::onAsyncTick, 20);
|
||||
art = J.ar(this::onAsyncTick, 7);
|
||||
}
|
||||
|
||||
private void onAsyncTick() {
|
||||
|
@ -87,6 +87,7 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
private double generatedPerSecond = 0;
|
||||
private final int art;
|
||||
private ReactiveFolder hotloader = null;
|
||||
private IrisWorld cworld = null;
|
||||
|
||||
public EngineCompositeGenerator() {
|
||||
this(null, true);
|
||||
@ -131,6 +132,11 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
|
||||
getComposite().close();
|
||||
initialized.lazySet(false);
|
||||
|
||||
if(cworld != null)
|
||||
{
|
||||
initialize(cworld);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -315,7 +321,7 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
populators.clear();
|
||||
populators.addAll(compound.get().getPopulators());
|
||||
hotloader = new ReactiveFolder(data.getDataFolder(), (a, c, d) -> hotload());
|
||||
|
||||
cworld = world;
|
||||
// if(world.hasRealWorld())
|
||||
// {
|
||||
// placeStrongholds(world.realWorld());
|
||||
|
Loading…
x
Reference in New Issue
Block a user