improve readability lmao

this long line is rly bad :(((
This commit is contained in:
Minecon724 2022-01-29 16:28:55 +01:00
parent 9838c4d90b
commit 9161dfeb2c

View file

@ -79,7 +79,8 @@ public class Main extends JavaPlugin implements Listener {
@Override
public void run() {
for (Entity e : giants) {
Collection<Entity> nearby = e.getWorld().getNearbyEntities(e.getBoundingBox().expand(attackReach, expandUp, attackReach), n -> (n instanceof Player));
Collection<Entity> nearby = e.getWorld().getNearbyEntities(e.getBoundingBox().expand(
attackReach, expandUp, attackReach), n -> (n instanceof Player));
for (Entity p : nearby) {
((LivingEntity) p).damage(attackDamage, e);
}