d
This commit is contained in:
parent
d9dd549597
commit
23a85533c6
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ public class Main extends JavaPlugin implements Listener {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (Entity e : giants) {
|
for (Entity e : giants) {
|
||||||
Collection<Entity> nearby = e.getWorld().getNearbyEntities(e.getBoundingBox().expand(4D, 1D, 4D), n -> (n instanceof Player));
|
Collection<Entity> nearby = e.getWorld().getNearbyEntities(e.getBoundingBox(), n -> (n instanceof Player));
|
||||||
for (Entity p : nearby) {
|
for (Entity p : nearby) {
|
||||||
((LivingEntity) p).damage(attackDamage, e);
|
((LivingEntity) p).damage(attackDamage, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue