From 5f9926e3ea2f801da9f614517657c19f42e059ec Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 1 Nov 2023 15:18:34 -0400 Subject: [PATCH] v2.3.0: fixed inter-floor teleports working in mining level --- .../com/shatteredpixel/shatteredpixeldungeon/Dungeon.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java index ecf9cf309..c22af2446 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java @@ -441,7 +441,9 @@ public class Dungeon { } public static boolean interfloorTeleportAllowed(){ - if (Dungeon.level.locked || (Dungeon.hero != null && Dungeon.hero.belongings.getItem(Amulet.class) != null)){ + if (Dungeon.level.locked + || Dungeon.level instanceof MiningLevel + || (Dungeon.hero != null && Dungeon.hero.belongings.getItem(Amulet.class) != null)){ return false; } return true;