mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
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
This commit is contained in:
1 parent
ee413c31b9
commit
000cefdab9
1 file changed
+2
-6
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user