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:
parent
c5e9ffa9fe
commit
8a6b970c1f
|
@ -86,6 +86,8 @@ public class Thief extends Mob {
|
||||||
|
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
Dungeon.level.drop( item, pos ).sprite.drop();
|
Dungeon.level.drop( item, pos ).sprite.drop();
|
||||||
|
//updates position
|
||||||
|
if (item instanceof Honeypot.ShatteredPot) ((Honeypot.ShatteredPot)item).setHolder( this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user