Skip to content

Commit 7ea2794

Browse files
committed
check standard rotation before axis rotation
1 parent 8dad01e commit 7ea2794

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,11 @@ object BuildSimulator {
313313
}
314314
}
315315

316-
if (!place.axisRotate) {
317-
simulatePlaceState()?.let { placeResult ->
316+
simulatePlaceState()?.let simulatePlaceState@ { placeResult ->
317+
if (!place.axisRotate) {
318318
acc.add(placeResult)
319319
return@forEach
320320
}
321-
} else run axisRotate@ {
322321
placementRotations.forEachIndexed direction@ { index, angle ->
323322
fakePlayer.rotation = angle
324323

@@ -335,7 +334,7 @@ object BuildSimulator {
335334
}
336335

337336
else -> {
338-
return@axisRotate
337+
return@simulatePlaceState
339338
}
340339
}
341340
}

0 commit comments

Comments
 (0)