From 18153746ca088fa68f237eb742f0766716db19a8 Mon Sep 17 00:00:00 2001 From: Dex Date: Wed, 3 Jan 2024 18:22:09 -0500 Subject: [PATCH] add back sneak fall feature (for merge) This reverts commit fe8dadc93836d9ff68660168b48a0357690f1e8c. --- src/main/java/net/wurstclient/hacks/GlideHack.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/net/wurstclient/hacks/GlideHack.java b/src/main/java/net/wurstclient/hacks/GlideHack.java index eaa7f2764e..da5a8a9ef4 100644 --- a/src/main/java/net/wurstclient/hacks/GlideHack.java +++ b/src/main/java/net/wurstclient/hacks/GlideHack.java @@ -19,6 +19,7 @@ import net.wurstclient.events.AirStrafingSpeedListener; import net.wurstclient.events.UpdateListener; import net.wurstclient.hack.Hack; +import net.wurstclient.settings.CheckboxSetting; import net.wurstclient.settings.SliderSetting; import net.wurstclient.settings.SliderSetting.ValueDisplay; import net.wurstclient.util.BlockUtils; @@ -26,6 +27,12 @@ public final class GlideHack extends Hack implements UpdateListener, AirStrafingSpeedListener { + private final CheckboxSetting doSneakFall = + new CheckboxSetting("Temporary Disable", + "Temporarily disable this hack using your crouch button.\n" + + "Turn off if you want to glide while crouching.", + true); + private final SliderSetting fallSpeed = new SliderSetting("Fall speed", 0.125, 0.005, 0.25, 0.005, ValueDisplay.DECIMAL); @@ -42,6 +49,7 @@ public GlideHack() super("Glide"); setCategory(Category.MOVEMENT); + addSetting(doSneakFall); addSetting(fallSpeed); addSetting(moveSpeed); addSetting(minHeight); @@ -64,6 +72,9 @@ public void onDisable() @Override public void onUpdate() { + if(doSneakFall.isChecked() && MC.player.isSneaking()) + return; + ClientPlayerEntity player = MC.player; Vec3d v = player.getVelocity();