mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 03:07:34 +00:00
Adjusted floating: NPCs don't float when they're knocked back or hurt.
This commit is contained in:
1 parent
d66f532643
commit
8c602c4d16
1 file changed
+1
-1
@@ -36,7 +36,7 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.onGround)
|
||||
if (!this.onGround && !this.velocityChanged && this.motionY < 0 && this.hurtTime == 0)
|
||||
{
|
||||
this.motionY *= this.ai.flyGravity;
|
||||
this.velocityChanged = true;
|
||||
|
||||
Reference in new issue
Block a user