Pathing classes for NPC flying added. NPCs can now follow tactical variants while flying, and their pathing is a LOT better.

This commit is contained in:
luisc committed 2021-12-08 04:00:28 -06:00
1 parent 922708bf97
commit 2147bd00d0
8 files changed
+888 -69

No files matched your search

@@ -412,7 +412,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
}
public PathNavigate getNavigator() {
if(canFly() && !this.onGround)
if(canFly())
return this.flyNavigator;
else {
return super.getNavigator();
@@ -420,7 +420,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
}
public EntityMoveHelper getMoveHelper() {
if(canFly() && !this.onGround)
if(canFly())
return this.flyMoveHelper;
else {
return super.getMoveHelper();