Fix async spawn issue on spigot

This commit is contained in:
Daniel Mills 2021-08-08 01:13:53 -04:00
parent 7f6fec5530
commit 4e131d9a54
2 changed files with 10 additions and 2 deletions

View File

@ -241,7 +241,15 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
}
}
spawn(c, v);
try
{
spawn(c, v);
}
catch(Throwable e)
{
J.s(() -> spawn(c, v));
}
}
//@done
}

View File

@ -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)),