Skip to content

Commit 8c653c4

Browse files
committed
isGliding check, default obstacle passer direction step to 22.5, and y motion speed limit default to 120
1 parent 446e8df commit 8c653c4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/com/lambda/module/modules/movement/elytrafly/ObstaclePassingMode.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ abstract class ObstaclePassingMode(
107107
if (!player.isOnGround) return false
108108

109109
val notProgressing = Speedometer.calculateSpeed(true, SpeedUnit.BlocksPerSecond) < 0.01
110-
if (notProgressing) {
110+
if (player.isGliding && notProgressing) {
111111
pathToValidPoint(closestLinePoint, snappedDir)
112112
return true
113113
}
@@ -214,5 +214,5 @@ class PasserSettings(override val c: Config) : ConfigBlock {
214214
val headHitters by c.setting("Head Hitters", true, "Flags obstacles above the y level you started flying at") { passObstacles }
215215
val acceptableOffsetRange by c.setting("Acceptable Offset Range", 2.0, 0.1..5.0, 0.01, "Acceptable offset from the original flight line to allow when starting to fly again after passing obstacles") { passObstacles }
216216
val obstacleLookAhead by c.setting("Obstacle Look-Ahead", 8, 0..50, 1, "Looks ahead of the player to see if obstacles are in the way") { passObstacles }
217-
val directionStep by c.setting("Direction Step", 45.0, 0.0..180.0, 0.1, "The step size to use when locking the flight direction") { passObstacles }
217+
val directionStep by c.setting("Direction Step", 22.5, 0.0..180.0, 0.1, "The step size to use when locking the flight direction") { passObstacles }
218218
}

src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class BounceElytraFly(
8080
@Group(Y_MOTION_GROUP) val strictYMotionRange by c.setting("Strict Range", true, "provides an extra range check to sneak until within. Typically used for when you need to get within sub-block distances of walls for collision checks") { yMotionSetting }
8181
@Group(Y_MOTION_GROUP) val acceptableYMotionRange by c.setting("Acceptable Range", 0.1, 0.01..5.0, 0.01, "The acceptable distance, aside from forward distance, from the start position") { yMotionSetting && strictYMotionRange }
8282
@Group(Y_MOTION_GROUP) val yMotionStartSpeed by c.setting("Y Motion Start Speed", 30, 0..40, 1, unit = "bps") { yMotionSetting }
83-
@Group(Y_MOTION_GROUP) val speedLimit by c.setting("Speed Limit", 110, 10..400, 1, unit = "bps") { yMotionSetting }
83+
@Group(Y_MOTION_GROUP) val speedLimit by c.setting("Speed Limit", 120, 10..400, 1, unit = "bps") { yMotionSetting }
8484
private val SafeContext.yMotion
8585
get() = yMotionSetting &&
8686
onYMotionAngle &&

0 commit comments

Comments
 (0)