v3.1.0: adjusted ebony mimic spawning slightly to prevent a rare crash

This commit is contained in:
Evan Debenham
2025-05-20 14:22:45 -04:00
parent 0db59e92cf
commit b95607ead0
@@ -656,7 +656,9 @@ public abstract class RegularLevel extends Level {
candidateCells.add(h.pos); candidateCells.add(h.pos);
} }
} }
} else { }
if (candidateCells.isEmpty()) {
if (Random.Int(5) == 0 && findMob(exit()) == null) { if (Random.Int(5) == 0 && findMob(exit()) == null) {
candidateCells.add(exit()); candidateCells.add(exit());
} else { } else {