Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity()

This commit is contained in:
luisc committed 2021-12-08 04:50:23 -06:00
1 parent c2564de470
commit 94c7df410b
4 files changed
+25 -1

No files matched your search

@@ -38,7 +38,7 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
if (!this.onGround && !this.getMoveHelper().isUpdating())
{
this.motionY *= 0.0D;
this.motionY *= this.ai.flyGravity;
this.velocityChanged = true;
}
}