v0.3.0c: fixed a bug where bees were returning to an incorrect position after the theif they were chasing dies

This commit is contained in:
Evan Debenham 2015-06-05 11:12:27 -04:00 committed by Evan Debenham
parent c5e9ffa9fe
commit 8a6b970c1f

View File

@ -86,6 +86,8 @@ public class Thief extends Mob {
if (item != null) {
Dungeon.level.drop( item, pos ).sprite.drop();
//updates position
if (item instanceof Honeypot.ShatteredPot) ((Honeypot.ShatteredPot)item).setHolder( this );
}
}