mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 17:19:05 +00:00
Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity()
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user