v2.3.0: fixed inter-floor teleports working in mining level

This commit is contained in:
Evan Debenham
2023-11-01 15:18:34 -04:00
parent 5c3a143fce
commit 5f9926e3ea

View File

@@ -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;