From e56a2bfd637ccb96750b65bb9b288467796c8fe8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 12 May 2024 12:24:49 -0400 Subject: [PATCH] v2.4.0: fixed a crash when loading with ebony mimics --- .../shatteredpixeldungeon/actors/mobs/EbonyMimic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/EbonyMimic.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/EbonyMimic.java index 7f3fc7fa0..2689bde76 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/EbonyMimic.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/EbonyMimic.java @@ -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 ); } }