fix: don't slow down freecam vertical movement

This commit is contained in:
əlemi 2023-02-15 21:44:05 +01:00
parent c2455718f9
commit caf64a44f2
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -67,7 +67,7 @@ public class Freecam extends QuickModule implements ICommons {
protected void onTick(TickEvent.ClientTickEvent event) {
if (MC.player == null) return;
MC.player.abilities.setFlyingSpeed(this.speed.get().floatValue());
if (!this.drift.get() && !Keyboard.isStrafing()) {
if (!this.drift.get() && !Keyboard.isMoving()) {
MC.player.setDeltaMovement(Vector3d.ZERO);
}
}