Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Mar 13, 2024
1 parent fc8950a commit 596a46e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SilentSneak : Module() {
}

override fun onDisable() {
sneaking = false
if (mc.thePlayer == null) return
when (modeValue.get().lowercase(Locale.getDefault())) {
"legit" -> if (!GameSettings.isKeyDown(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,6 @@ class Scaffold : Module() {
towerTick = 0
wdSpoof = false
}
try {
if (faceBlock && !mc.thePlayer.onGround)
place()
else if (slot != mc.thePlayer.inventoryContainer.getSlot(InventoryUtils.findAutoBlockBlock()).slotIndex) {
mc.thePlayer.inventory.currentItem = InventoryUtils.findAutoBlockBlock() - 36
mc.playerController.updateController()
}
} catch (ignored: Exception) {
}
if (allowTower.get() && GameSettings.isKeyDown(mc.gameSettings.keyBindJump) && !GameSettings.isKeyDown(mc.gameSettings.keyBindSneak) && blocksAmount > 0 && MovementUtils.isRidingBlock() && (towerMove.get()
.equals("always", true) || !MovementUtils.isMoving() && towerMove.get()
.equals("standing", true) || MovementUtils.isMoving() && towerMove.get().equals("moving", true))
Expand Down Expand Up @@ -670,12 +661,14 @@ class Scaffold : Module() {
if ((!mc.thePlayer.onGround || shouldEagle) && mc.thePlayer.ticksExisted % 2 == 0 && !faceBlock)
faceBlock = true

if (event.eventState == EventState.POST) {
try {
if (faceBlock && mc.thePlayer.onGround)
place()
} catch (ignored: Exception) {
try {
if (faceBlock)
place()
else if (slot != mc.thePlayer.inventoryContainer.getSlot(InventoryUtils.findAutoBlockBlock()).slotIndex) {
mc.thePlayer.inventory.currentItem = InventoryUtils.findAutoBlockBlock() - 36
mc.playerController.updateController()
}
} catch (ignored: Exception) {
}

// No SpeedPot
Expand Down

0 comments on commit 596a46e

Please sign in to comment.