mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user