mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 16:09:05 +00:00
NPCs properly stay floating when not navigating and in the air.
This commit is contained in:
1 parent
2147bd00d0
commit
c2564de470
3 files changed
+5
-13
No files matched your search
@@ -31,17 +31,16 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
|
||||
|
||||
public void onLivingUpdate()
|
||||
{
|
||||
if(!canFly() || this.isJumping){
|
||||
super.onLivingUpdate();
|
||||
super.onLivingUpdate();
|
||||
if(!canFly()){
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.onGround && !this.getMoveHelper().isUpdating())
|
||||
{
|
||||
this.motionY *= 0.0D;
|
||||
this.velocityChanged = true;
|
||||
}
|
||||
|
||||
super.onLivingUpdate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user