Skip to content

Commit

Permalink
fix: forgot this
Browse files Browse the repository at this point in the history
  • Loading branch information
TakoTheDev committed Sep 29, 2024
1 parent 69aaeb3 commit 883933f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ object AlignmentTaskSolver {
val pos = entity.hangingPosition
val pending = pendingClicks[pos]
if (pending != null) {
val newRot = (event.packet.func_149376_c().find { it.dataValueId == 9 && it.objectType == 0 }?.`object` as? Byte ?: return).toInt()
val newRot = (event.packet.func_149376_c()?.find { it.dataValueId == 9 && it.objectType == 0 }?.`object` as? Byte ?: return).toInt()
val currentRot = entity.rotation
val delta = getTurnsNeeded(currentRot, newRot)
val newPending = pending - delta
Expand Down

0 comments on commit 883933f

Please sign in to comment.