diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/InventoryPane.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/InventoryPane.java index 3e770f7a6..3f0d64b85 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/InventoryPane.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/InventoryPane.java @@ -507,6 +507,10 @@ public class InventoryPane extends Component { return; } + if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){ + return; + } + if (targeting){ if (targetingSlot == this){ onClick(); @@ -532,6 +536,10 @@ public class InventoryPane extends Component { return; } + if (!Dungeon.hero.isAlive() || !Dungeon.hero.ready){ + return; + } + if (targeting){ //do nothing return;