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(
59
59
private var lastHitVec: Vec3d ? = null
60
60
private var placeInfo: PlaceInfo ? = null
61
61
private var inactiveTicks = 69
62
+ private var towerTimer: TickTimer = TickTimer (TimeUnit .TICKS )
62
63
63
64
private enum class ScaffoldBlockSelectionMode (override val displayName : String ): DisplayEnum {
64
65
ANY (" Any" ),
@@ -71,6 +72,11 @@ object Scaffold : Module(
71
72
}
72
73
73
74
init {
75
+
76
+ onEnable {
77
+ towerTimer.reset()
78
+ }
79
+
74
80
onDisable {
75
81
placeInfo = null
76
82
inactiveTicks = 69
@@ -98,7 +104,12 @@ object Scaffold : Module(
98
104
placeBlock(pi, noGhost = false ) // noGhost true usually causes problems and has no real benefit here
99
105
if (shouldSneak) connection.sendPacket(CPacketEntityAction (player, CPacketEntityAction .Action .STOP_SNEAKING ))
100
106
mc.player.jump()
107
+ if (towerTimer.tick(30 )) {
108
+ // reset pos back onto top block
109
+ mc.player.motionY = - 0.3
110
+ }
101
111
} else {
112
+ towerTimer.reset()
102
113
if (placeTimer.tick(delay, true )) {
103
114
val shouldSneak = sneak && ! player.isSneaking
104
115
if (shouldSneak) connection.sendPacket(CPacketEntityAction (player, CPacketEntityAction .Action .START_SNEAKING ))
You can’t perform that action at this time.
0 commit comments