geforkt von Mirrors/FastAsyncWorldEdit
/butcher should now kill animals again.
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren