Skip to content

Commit df78c77

Browse files
committed
fix settings checks
1 parent adb1751 commit df78c77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/config/groups/PlaceSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PlaceSettings(
3030
override val airPlace by c.setting("Air Place", AirPlaceMode.None, "Allows for placing blocks without adjacent faces") { vis() }
3131
override val axisRotateSetting by c.setting("Axis Rotate", true, "Overrides the Rotate For Place setting and rotates the player on each axis to air place rotational blocks") { vis() && airPlace.isEnabled() }
3232
override val axisRotate
33-
get() = airPlace.isEnabled() && axisRotateSetting
33+
get() = rotateForPlace && airPlace.isEnabled() && axisRotateSetting
3434
override val placeConfirmationMode by c.setting("Place Confirmation", PlaceConfirmationMode.PlaceThenAwait, "Wait for block placement confirmation") { vis() }
3535
override val maxPendingPlacements by c.setting("Max Pending Placements", 5, 0..30, 1, "The maximum amount of pending placements") { vis() }
3636
override val placementsPerTick by c.setting("Instant Places Per Tick", 1, 1..30, 1, "Maximum instant block places per tick") { vis() }

common/src/main/kotlin/com/lambda/interaction/construction/simulation/BuildSimulator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ object BuildSimulator {
318318
acc.add(placeResult)
319319
return@forEach
320320
}
321-
} else if (place.rotateForPlace) run axisRotate@ {
321+
} else run axisRotate@ {
322322
placementRotations.forEachIndexed direction@ { index, angle ->
323323
fakePlayer.rotation = angle
324324

0 commit comments

Comments
 (0)