v0.6.2c: fixed crashes involving mimic spawning
This commit is contained in:
parent
1fbaa27f5b
commit
913a504288
|
@ -112,8 +112,9 @@ public class Mimic extends Mob {
|
|||
}
|
||||
|
||||
public static Mimic spawnAt( int pos, List<Item> items ) {
|
||||
if (Dungeon.level.pit[pos]) return null;
|
||||
Char ch = Actor.findChar( pos );
|
||||
if (ch != null || !Dungeon.level.passable[pos]) {
|
||||
if (ch != null) {
|
||||
ArrayList<Integer> candidates = new ArrayList<>();
|
||||
for (int n : PathFinder.NEIGHBOURS8) {
|
||||
int cell = pos + n;
|
||||
|
|
Loading…
Reference in New Issue
Block a user