From a78cb4691b312dbdc81c9f56741e4ec69eff1acf Mon Sep 17 00:00:00 2001 From: dzx-dzx Date: Mon, 3 Oct 2022 13:01:21 +0800 Subject: [PATCH] Fix direction. --- src/nc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nc.js b/src/nc.js index 8bf7011..cf06ddd 100644 --- a/src/nc.js +++ b/src/nc.js @@ -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) {