From 113b29f791b608630566ad3a75d8505da727118b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 Aug 2020 19:44:30 -0400 Subject: [PATCH] v0.8.2c: fixed bombs not always updating their heaps properly --- .../shatteredpixeldungeon/items/bombs/Bomb.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java index d7565aa98..d4de2e4d9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java @@ -290,10 +290,7 @@ public class Bomb extends Item { } else { - heap.items.remove(bomb); - if (heap.items.isEmpty()) { - heap.destroy(); - } + heap.remove(bomb); bomb.explode(heap.pos); }