improve readability lmao
this long line is rly bad :(((
This commit is contained in:
parent
9838c4d90b
commit
9161dfeb2c
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ 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(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) {
|
for (Entity p : nearby) {
|
||||||
((LivingEntity) p).damage(attackDamage, e);
|
((LivingEntity) p).damage(attackDamage, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue