@Override public void bn() { if (npc == null) super.bn(); else { NMS.updateAI(this); npc.update(); } }
@Override protected void bn() { if (owner == null) { super.bn(); return; } this.getNavigation().a(((CraftPlayer) owner).getHandle(), 0.7F); this.getNavigation().e(); // this is only needed for old ai getControllerMove().c(); getControllerLook().a(); getControllerJump().b(); if (distToOwner() > Util.MAX_DISTANCE) this.getBukkitEntity().teleport(owner); }