From 83e68d116bbe12fa359bf22c10e786f0d326d93b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 30 Sep 2015 15:55:54 -0400 Subject: [PATCH] v0.3.2: adjusted exception throwing on bombs --- .../shatteredpixel/shatteredpixeldungeon/items/Bomb.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Bomb.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Bomb.java index b63535b54..44f300b8d 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Bomb.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Bomb.java @@ -252,8 +252,10 @@ public class Bomb extends Item { } } - //can't find our bomb, this should never happen, throw an exception. - throw new RuntimeException("Something caused a lit bomb to not be present in a heap on the level!"); + //can't find our bomb, something must have removed it, do nothing. + bomb.fuse = null; + Actor.remove( this ); + return true; } }