/butcher should now kill animals again.

This commit is contained in:
sk89q 2011-01-12 08:56:49 -08:00
parent bd770a5fac
commit 1cadc5d7f6

View File

@ -344,6 +344,15 @@ public class HMWorld extends LocalWorld {
}
}
for (Mob mob : etc.getServer().getAnimalList()) {
Vector mobPos = new Vector(mob.getX(), mob.getY(), mob.getZ());
if (mob.getHealth() > 0
&& (radius == -1 || mobPos.distance(origin) <= radius)) {
mob.setHealth(0);
killed++;
}
}
return killed;
}