/butcher should now kill animals again.

Dieser Commit ist enthalten in:
sk89q 2011-01-12 08:56:49 -08:00
Ursprung bd770a5fac
Commit 1cadc5d7f6

Datei anzeigen

@ -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;
}