mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 06:09:05 +00:00
EntityNPCFlying:
-Re-implemented flying gravity (woops)
This commit is contained in:
1 parent
35533de73c
commit
9c82e60a6e
1 file changed
+3
-2
@@ -48,8 +48,9 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
|
||||
super.moveEntityWithHeading(p_70612_1_, p_70612_2_);
|
||||
this.motionY = d3;
|
||||
|
||||
if(this.getNavigator().noPath())
|
||||
this.motionY = 0.0D;
|
||||
if (this.getNavigator().noPath()) {
|
||||
this.motionY = -Math.abs(this.ai.flyGravity);
|
||||
}
|
||||
|
||||
this.velocityChanged = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user