File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
common/src/main/kotlin/com/lambda/interaction/construction Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ data class PlaceContext(
8181 val validRotation = if (request.build.placing.rotate) {
8282 // ToDo: add a rotation compare to the !previousDirWasInvalid check in case the player
8383 // was able to perform actions after updating the server rotation in the same tick
84- request.rotation.request(rotation).done && ! previousDirWasInvalid
84+ request.rotation.request(rotation, false ).done && ! previousDirWasInvalid
8585 } else true
8686 return hotbarRequest.done && validRotation
8787 }
Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ object BuildSimulator {
241241 // ToDo: For each hand and sneak or not?
242242 val fakePlayer = copyPlayer(player).apply {
243243 setPos(eye.x, eye.y - standingEyeHeight, eye.z)
244+ this .rotation = RotationManager .serverRotation
244245 }
245246
246247 val checkedResult = checkedHit.hit
@@ -293,7 +294,7 @@ object BuildSimulator {
293294 }
294295
295296 lateinit var resultState: BlockState
296- var rot = fakePlayer .rotation
297+ var rot = player .rotation
297298
298299 val simulatePlaceState = placeState@ {
299300 resultState = blockItem.getPlacementState(context)
@@ -330,7 +331,6 @@ object BuildSimulator {
330331 if (place.axisRotate && currentDirIsInvalid) run axisRotations@ {
331332 placementRotations.forEachIndexed direction@ { index, angle ->
332333 fakePlayer.rotation = angle
333-
334334 when (val placeResult = simulatePlaceState()) {
335335 is PlaceResult .BlockedByEntity -> {
336336 acc.add(placeResult)
You can’t perform that action at this time.
0 commit comments