v2.4.0: fixed a crash when loading with ebony mimics

This commit is contained in:
Evan Debenham
2024-05-12 12:24:49 -04:00
parent ddc40523d2
commit e56a2bfd63

View File

@@ -75,7 +75,7 @@ public class EbonyMimic extends Mimic {
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC, 1, 0.85f);
}
if (Dungeon.level.map[pos] == Terrain.DOOR){
if (Actor.chars().contains(this) && Dungeon.level.map[pos] == Terrain.DOOR){
Door.enter( pos );
}
}