This commit is contained in:
Minecon724 2022-01-29 15:47:13 +01:00
parent d9dd549597
commit 23a85533c6
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class Main extends JavaPlugin implements Listener {
@Override
public void run() {
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) {
((LivingEntity) p).damage(attackDamage, e);
}