Commits

md_5 authored 3d61a853e35
Fix formatting in CraftLivingEntity
No tags

src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java

Modified
574 574
575 575 @Override
576 576 public void setAI(boolean ai) {
577 577 if (this.getHandle() instanceof EntityInsentient) {
578 578 ((EntityInsentient) this.getHandle()).setNoAI(!ai);
579 579 }
580 580 }
581 581
582 582 @Override
583 583 public boolean hasAI() {
584 - return (this.getHandle() instanceof EntityInsentient) ? !((EntityInsentient) this.getHandle()).isNoAI(): false;
584 + return (this.getHandle() instanceof EntityInsentient) ? !((EntityInsentient) this.getHandle()).isNoAI() : false;
585 585 }
586 586
587 587 @Override
588 588 public void attack(Entity target) {
589 589 Preconditions.checkArgument(target != null, "target == null");
590 590
591 591 getHandle().B(((CraftEntity) target).getHandle()); // PAIL rename attack
592 592 }
593 593
594 594 @Override

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut