Skip to content

Commit

Permalink
Fix direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx committed Oct 3, 2022
1 parent fa2a988 commit a78cb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function assembleUseItemData(player, blockLocation) {
return {
blockType: getBlock(new Position(new Coordinate(x, y, z), dimension)),
position: new Position({ x, y, z }, dimension),
direction: new Direction(-90 * player.viewVector.y, player.bodyRotation)
direction: new Direction(player.rotation.x, player.rotation.y)
}
}
function getBlock(position) {
Expand Down

0 comments on commit a78cb46

Please sign in to comment.