Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
/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;
|
return killed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren