Skip to content

Commit acf5047

Browse files
committed
only check current rotation if not using air place
1 parent 19b7787 commit acf5047

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/lambda/interaction/construction/simulation/context/InteractContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ data class InteractContext(
6161
fun requestDependencies(request: InteractRequest): Boolean {
6262
val hotbarRequest = HotbarRequest(hotbarIndex, this).submit(queueIfMismatchedStage = false)
6363
val validRotation = if (request.interactConfig.rotate) {
64-
rotationRequest.submit(queueIfMismatchedStage = false).done && currentDirIsValid
64+
(rotationRequest.submit(queueIfMismatchedStage = false).done || interactConfig.airPlace.isEnabled) && currentDirIsValid
6565
} else true
6666
return hotbarRequest.done && validRotation
6767
}

src/main/kotlin/com/lambda/module/modules/movement/ElytraFly.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ object ElytraFly : Module(
138138
if (mc.options.rightKey.isPressed) vec = vec.add(Vec3d.fromPolar(0f, yaw + 90f))
139139
if (mc.options.jumpKey.isPressed) vec = vec.add(Vec3d(0.0, 1.0, 0.0))
140140
if (mc.options.sneakKey.isPressed) vec = vec.add(Vec3d(0.0, -1.0, 0.0))
141-
if (vec.lengthSquared() < 1e-4 && player.hasFirework) {
141+
if (vec === Vec3d.ZERO && player.hasFirework) {
142142
if (flipFlop) {
143143
flipFlop = false
144144
rotationRequest { rotation(0f, 0f) }

0 commit comments

Comments
 (0)