File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/kotlin/com/lambda/client/module/modules/player Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ object Scaffold : Module(
5959 private var lastHitVec: Vec3d ? = null
6060 private var placeInfo: PlaceInfo ? = null
6161 private var inactiveTicks = 69
62+ private var towerTimer: TickTimer = TickTimer (TimeUnit .TICKS )
6263
6364 private enum class ScaffoldBlockSelectionMode (override val displayName : String ): DisplayEnum {
6465 ANY (" Any" ),
@@ -71,6 +72,11 @@ object Scaffold : Module(
7172 }
7273
7374 init {
75+
76+ onEnable {
77+ towerTimer.reset()
78+ }
79+
7480 onDisable {
7581 placeInfo = null
7682 inactiveTicks = 69
@@ -98,7 +104,12 @@ object Scaffold : Module(
98104 placeBlock(pi, noGhost = false ) // noGhost true usually causes problems and has no real benefit here
99105 if (shouldSneak) connection.sendPacket(CPacketEntityAction (player, CPacketEntityAction .Action .STOP_SNEAKING ))
100106 mc.player.jump()
107+ if (towerTimer.tick(30 )) {
108+ // reset pos back onto top block
109+ mc.player.motionY = - 0.3
110+ }
101111 } else {
112+ towerTimer.reset()
102113 if (placeTimer.tick(delay, true )) {
103114 val shouldSneak = sneak && ! player.isSneaking
104115 if (shouldSneak) connection.sendPacket(CPacketEntityAction (player, CPacketEntityAction .Action .START_SNEAKING ))
You can’t perform that action at this time.
0 commit comments