Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Release 1.6.3
Browse files Browse the repository at this point in the history
- [※] **Fix** 'Fast' option of Scaffold.
  • Loading branch information
xia-mc committed Jun 27, 2024
1 parent 21fd856 commit f65bc03
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/keystrokesmod/module/impl/world/Scaffold.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public class Scaffold extends Module { // from b4 :)
private boolean forceStrict;
private boolean down;
private int add;
private boolean speeded;
public Scaffold() {
super("Scaffold", category.world);
this.registerSetting(motion = new SliderSetting("Motion", 0.95, 0.5, 1.2, 0.01));
Expand Down Expand Up @@ -117,18 +116,13 @@ public void onPreMotion(PreMotionEvent event) {
public void onPreUpdate(PreUpdateEvent e) { // place here
if (onlyOffGround.isToggled() && mc.thePlayer.onGround) return;

if (fast.isToggled()) {
if (fast.isToggled() && mc.gameSettings.keyBindJump.isKeyDown()) {
if (mc.gameSettings.keyBindForward.isKeyDown() && client.getPlayer().onGround()) {
((KeyBindingAccessor) mc.gameSettings.keyBindUseItem).setPressed(true);
((KeyBindingAccessor) mc.gameSettings.keyBindJump).setPressed(true);
if (!isDiagonal() && !(mc.gameSettings.keyBindRight.isKeyDown() || mc.gameSettings.keyBindLeft.isKeyDown())) {
client.setSpeed(0.5);
client.setSprinting(false);
client.jump();
} else if (isDiagonal() || (mc.gameSettings.keyBindRight.isKeyDown() || mc.gameSettings.keyBindLeft.isKeyDown())) {
client.jump();
}
speeded = true;
}
}

Expand Down

0 comments on commit f65bc03

Please sign in to comment.