From 7fa7af5a09b4ecf39cc8f3bbaa64111b2a4d42fc Mon Sep 17 00:00:00 2001 From: randomguy3725 <110034079+randomguy3725@users.noreply.github.com> Date: Sun, 18 Sep 2022 12:13:39 +0800 Subject: [PATCH] Update Scaffold gay --- .../module/modules/world/Scaffold.java | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Scaffold.java b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Scaffold.java index 2fda392f..68333b52 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Scaffold.java +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Scaffold.java @@ -280,16 +280,6 @@ public boolean towerActivation() { public void onEnable() { if (mc.thePlayer == null) return; - if (sprintModeValue.get().equalsIgnoreCase("Hypixel")) { - if (mc.thePlayer.onGround) ; - mc.thePlayer.setSprinting(false); - mc.thePlayer.motionX *= 1.19; - mc.thePlayer.motionZ *= 1.19; - } else { - mc.thePlayer.motionX = 0; - mc.thePlayer.motionZ = 0; - } - progress = 0; spinYaw = 0; launchY = (int) mc.thePlayer.posY; @@ -451,13 +441,10 @@ public void onUpdate(final UpdateEvent event) { } if (sprintModeValue.get().equalsIgnoreCase("Hypixel")) { - if (mc.thePlayer.onGround) ; - mc.thePlayer.setSprinting(false); - mc.thePlayer.motionX *= 1.19; - mc.thePlayer.motionZ *= 1.19; - } else { - mc.thePlayer.motionX = 0; - mc.thePlayer.motionZ = 0; + if (mc.thePlayer.onGround); + mc.thePlayer.setSprinting(true); + mc.thePlayer.motionX *= 1.0; + mc.thePlayer.motionZ *= 1.0; } mc.timer.timerSpeed = timerValue.get(); @@ -817,6 +804,11 @@ private void place(boolean towerActive) { delayTimer.reset(); return; } + if (sprintModeValue.get().equalsIgnoreCase("Hypixel")) { + mc.thePlayer.setSprinting(false); + mc.thePlayer.motionX *= 1.0; + mc.thePlayer.motionZ *= 1.0; + } if (!towerActivation() && (!delayTimer.hasTimePassed(delay) || (smartDelay.get() && mc.rightClickDelayTimer > 0) || ((sameYValue.get() || ((autoJumpValue.get() || (smartSpeedValue.get() && LiquidBounce.moduleManager.getModule(Speed.class).getState())) && !GameSettings.isKeyDown(mc.gameSettings.keyBindJump))) && launchY - 1 != (int) (towerActive ? towerPlace : targetPlace).getVec3().yCoord))) return; @@ -1199,4 +1191,4 @@ private int getBlocksAmount() { public String getTag() { return (towerActivation()) ? "" + rotationModeValue.get() : rotationModeValue.get(); } -} +} \ No newline at end of file