mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Fixes
This commit is contained in:
parent
2d43014029
commit
7f6fec5530
@ -87,6 +87,11 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
||||
looper = new Looper() {
|
||||
@Override
|
||||
protected long loop() {
|
||||
if(getEngine().isClosed())
|
||||
{
|
||||
interrupt();
|
||||
}
|
||||
|
||||
if(getDimension().isInfiniteEnergy())
|
||||
{
|
||||
energy += 1000;
|
||||
@ -133,6 +138,11 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
||||
}
|
||||
|
||||
private boolean onAsyncTick() {
|
||||
if(getEngine().isClosed())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
actuallySpawned = 0;
|
||||
|
||||
if (energy < 100) {
|
||||
@ -154,7 +164,15 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -45,7 +45,7 @@ public enum NoiseStyle {
|
||||
|
||||
@Desc("Clover Noise")
|
||||
CLOVER(rng -> new CNG(rng, NoiseType.CLOVER, 1D, 1).scale(0.06).bake()),
|
||||
|
||||
|
||||
@Desc("CLOVER noise creates the same noise level for cells, changes noise level on cell borders.")
|
||||
CLOVER_STARCAST_3(rng -> new CNG(rng, NoiseType.CLOVER_STARCAST_3, 1D, 1)),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user