mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
/butcher should now kill animals again.
This commit is contained in:
parent
bd770a5fac
commit
1cadc5d7f6
@ -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;
|
return killed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user