Skip to content

Commit 67c6f26

Browse files
committed
add todo in PlaceContext
1 parent 38a5fc0 commit 67c6f26

File tree

1 file changed

+2
-0
lines changed
  • common/src/main/kotlin/com/lambda/interaction/construction/context

1 file changed

+2
-0
lines changed

common/src/main/kotlin/com/lambda/interaction/construction/context/PlaceContext.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ data class PlaceContext(
7979
fun requestDependencies(request: PlaceRequest): Boolean {
8080
val hotbarRequest = request.hotbar.request(HotbarRequest(hotbarIndex, request.hotbar))
8181
val validRotation = if (request.build.placing.rotate) {
82+
//ToDo: add a rotation compare to the !previousDirWasInvalid check in case the player
83+
// was able to perform actions after updating the server rotation in the same tick
8284
request.rotation.request(rotation).done && !previousDirWasInvalid
8385
} else true
8486
return hotbarRequest.done && validRotation

0 commit comments

Comments
 (0)