9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 02:29:14 +00:00

World manager fix engine close post ticks

This commit is contained in:
cyberpwn
2021-09-23 04:33:43 -04:00
parent 56723330b3
commit 3378723bdd

View File

@@ -274,6 +274,11 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
}
private void spawnIn(Chunk c, boolean initial) {
if(getEngine().isClosed())
{
return;
}
if (initial) {
energy += 1.2;
}
@@ -462,12 +467,22 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
@Override
public void onChunkLoad(Chunk e, boolean generated) {
if(getEngine().isClosed())
{
return;
}
energy += 0.3;
fixEnergy();
getEngine().cleanupMantleChunk(e.getX(), e.getZ());
}
private void spawn(IrisPosition block, IrisSpawner spawner, boolean initial) {
if(getEngine().isClosed())
{
return;
}
if (spawner == null) {
return;
}