Skip to content

Commit b623c11

Browse files
authored
SafeWalk + Step Compatibility (#485)
Step modifies player.stepHeight which messes up safewalk calculations
1 parent 8d37fe6 commit b623c11

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/com/lambda/client/module/modules/movement

1 file changed

+1
-1
lines changed

src/main/kotlin/com/lambda/client/module/modules/movement/SafeWalk.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object SafeWalk : Module(
3232
var x = event.x
3333
var z = event.z
3434

35-
var boundingBox = player.entityBoundingBox.offset(0.0, (-player.stepHeight).toDouble(), 0.0)
35+
var boundingBox = player.entityBoundingBox.offset(0.0, -.6, 0.0)
3636

3737
while (x != 0.0 && world.getCollisionBoxes(player, boundingBox.offset(x, 0.0, 0.0)).isEmpty()) {
3838
x = updateCoordinate(x)

0 commit comments

Comments
 (0)