mirror of
https://github.com/squeek502/Squake.git
synced 2025-08-03 17:58:08 -04:00
Fix not using the return of quake_moveEntityWithHeading
This commit is contained in:
parent
9c4115ba6c
commit
ca8c1b1079
@ -50,6 +50,7 @@ public class QuakeClientPlayer
|
||||
if (!player.world.isRemote)
|
||||
return false;
|
||||
|
||||
boolean didQuakeMovement;
|
||||
double d0 = player.posX;
|
||||
double d1 = player.posY;
|
||||
double d2 = player.posZ;
|
||||
@ -57,10 +58,12 @@ public class QuakeClientPlayer
|
||||
if ((player.capabilities.isFlying || player.isElytraFlying()) && player.getRidingEntity() == null)
|
||||
return false;
|
||||
else
|
||||
quake_moveEntityWithHeading(player, sidemove, forwardmove);
|
||||
didQuakeMovement = quake_moveEntityWithHeading(player, sidemove, forwardmove);
|
||||
|
||||
player.addMovementStat(player.posX - d0, player.posY - d1, player.posZ - d2);
|
||||
return true;
|
||||
if (didQuakeMovement)
|
||||
player.addMovementStat(player.posX - d0, player.posY - d1, player.posZ - d2);
|
||||
|
||||
return didQuakeMovement;
|
||||
}
|
||||
|
||||
public static void beforeOnLivingUpdate(EntityPlayer player)
|
||||
|
Loading…
x
Reference in New Issue
Block a user