Skip to content

Commit

Permalink
Update Scaffold
Browse files Browse the repository at this point in the history
gay
  • Loading branch information
randomguy3725 authored Sep 18, 2022
1 parent 2d03c2f commit 7fa7af5
Showing 1 changed file with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1199,4 +1191,4 @@ private int getBlocksAmount() {
public String getTag() {
return (towerActivation()) ? "" + rotationModeValue.get() : rotationModeValue.get();
}
}
}

0 comments on commit 7fa7af5

Please sign in to comment.