Skip to content

Commit 8ebfb17

Browse files
committed
currentDirIsInvalid check before calculating axis rotation
1 parent e7c7990 commit 8ebfb17

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/interaction/construction/simulation

1 file changed

+1
-1
lines changed

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
@@ -328,7 +328,7 @@ object BuildSimulator {
328328
rot = checkedHit.targetRotation
329329
}
330330

331-
if (place.axisRotate) run axisRotations@ {
331+
if (place.axisRotate && currentDirIsInvalid) run axisRotations@ {
332332
placementRotations.forEachIndexed direction@ { index, angle ->
333333
fakePlayer.rotation = angle
334334

0 commit comments

Comments
 (0)