From bebe8f82ad5182dac1b57c83e71eac0649ddcc15 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 4 Oct 2024 22:28:13 +0200 Subject: [PATCH] improve fall damage mitigations --- .../client/feature/modules/movement/ElytraFly.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/movement/ElytraFly.java b/Client/src/main/java/de/com/baseband/client/feature/modules/movement/ElytraFly.java index 620af38..edea88a 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/movement/ElytraFly.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/movement/ElytraFly.java @@ -124,6 +124,7 @@ public class ElytraFly extends Feature { else { // stop fall dmg mc.player.connection.sendPacket(new CPacketPlayer.Rotation(mc.player.rotationYaw, 0, false)); + mc.player.rotationPitch = 0; mc.player.motionY = 0.1; sendDisableTimer = ServerDataManager.timeToSurelyTicked(); // use NoFall setting if that's enabled, since the player might prefer something else @@ -141,14 +142,14 @@ public class ElytraFly extends Feature { @Override public void onEveryTick() { - if(sendDisableTimer > 0) { - mc.player.motionY = 0.1; - sendDisableTimer--; - } if(sendDisableTimer == 0) { sendDisablePackets(); sendDisableTimer = -1; } + if(sendDisableTimer > 0) { + mc.player.motionY = 0.1; + sendDisableTimer--; + } if (blockMovement) { meta = "Locked"; } else {