From 000cefdab93f6d4d4a74db1410d82b8d3609a403 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 6 Dec 2025 01:27:27 +0000 Subject: [PATCH] Fix mount movement sync and speed issues - Remove server-side check for setAIMoveSpeed to fix client prediction desync on ground mounts - Increase air strafe factor for flying mounts to match ground speed feel --- src/main/java/noppes/npcs/entity/EntityNPCInterface.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java index 58aadb253..8285cf213 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java @@ -2138,9 +2138,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti this.jumpMovementFactor = appliedJumpFactor; - if (!worldObj.isRemote) { - this.setAIMoveSpeed(moveSpeed); - } + this.setAIMoveSpeed(moveSpeed); super.moveEntityWithHeading(strafe, forward); @@ -2175,9 +2173,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti if (!flightMode) { return moveSpeed * 0.1F; } - final float AIR_FRICTION = 0.91F; - final float BASE = 0.16277136F; - return moveSpeed * (BASE / (AIR_FRICTION * AIR_FRICTION * AIR_FRICTION)); + return moveSpeed * 0.5F; } private void syncMountedRiderVelocity() {