Need to set zza

This commit is contained in:
fullwall 2023-02-14 00:47:57 +08:00
parent bd50e42c52
commit 9cebd487f7

View File

@ -121,7 +121,7 @@ public class PlayerMoveControl extends MoveControl {
} }
float movement = (float) (this.speedMod * this.entity.getAttribute(Attributes.MOVEMENT_SPEED).getValue()); float movement = (float) (this.speedMod * this.entity.getAttribute(Attributes.MOVEMENT_SPEED).getValue());
this.entity.setSpeed(movement); this.entity.setSpeed(movement);
// this.entity.zza = movement; this.entity.zza = movement;
if (shouldJump() || (dY >= NMS.getStepHeight(entity.getBukkitEntity()) && dXZ < 0.4D)) { if (shouldJump() || (dY >= NMS.getStepHeight(entity.getBukkitEntity()) && dXZ < 0.4D)) {
this.jumpTicks = jumpTicks(); this.jumpTicks = jumpTicks();
this.jumpTicks /= 3; this.jumpTicks /= 3;