v0.2.4b: crash fix and tweaks to bee AI

This commit is contained in:
Evan Debenham
2015-02-28 04:46:32 -05:00
parent d68d70ca76
commit 5950244f9f
2 changed files with 1 additions and 8 deletions
@@ -133,8 +133,7 @@ public class Bee extends Mob {
protected boolean getCloser(int target) {
if (enemy != null && Actor.findById(potHolder) == enemy) {
target = enemy.pos;
return super.getCloser(target);
} else if (state == WANDERING || (potPos != -1 && Level.distance(target, potPos) > 3))
} else if (potPos != -1 && (state == WANDERING || Level.distance(target, potPos) > 3))
this.target = target = potPos;
return super.getCloser( target );
}