mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
Fixes
This commit is contained in:
@@ -87,6 +87,11 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
looper = new Looper() {
|
looper = new Looper() {
|
||||||
@Override
|
@Override
|
||||||
protected long loop() {
|
protected long loop() {
|
||||||
|
if(getEngine().isClosed())
|
||||||
|
{
|
||||||
|
interrupt();
|
||||||
|
}
|
||||||
|
|
||||||
if(getDimension().isInfiniteEnergy())
|
if(getDimension().isInfiniteEnergy())
|
||||||
{
|
{
|
||||||
energy += 1000;
|
energy += 1000;
|
||||||
@@ -133,6 +138,11 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean onAsyncTick() {
|
private boolean onAsyncTick() {
|
||||||
|
if(getEngine().isClosed())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
actuallySpawned = 0;
|
actuallySpawned = 0;
|
||||||
|
|
||||||
if (energy < 100) {
|
if (energy < 100) {
|
||||||
@@ -154,7 +164,15 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cl.flip()) {
|
if (cl.flip()) {
|
||||||
J.s(() -> precount = getEngine().getWorld().realWorld().getEntities());
|
try
|
||||||
|
{
|
||||||
|
J.s(() -> precount = getEngine().getWorld().realWorld().getEntities());
|
||||||
|
}
|
||||||
|
|
||||||
|
catch(Throwable e)
|
||||||
|
{
|
||||||
|
close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int chunkCooldownSeconds = 60;
|
int chunkCooldownSeconds = 60;
|
||||||
|
|||||||
Reference in New Issue
Block a user