v0.3.2: adjusted exception throwing on bombs
This commit is contained in:
parent
4ae94fe7a8
commit
83e68d116b
|
@ -252,8 +252,10 @@ public class Bomb extends Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//can't find our bomb, this should never happen, throw an exception.
|
//can't find our bomb, something must have removed it, do nothing.
|
||||||
throw new RuntimeException("Something caused a lit bomb to not be present in a heap on the level!");
|
bomb.fuse = null;
|
||||||
|
Actor.remove( this );
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user