Skip to content

Commit c9fc5e6

Browse files
committed
attempt to fix waypoint position
1 parent 6a966df commit c9fc5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/js/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export function translateCoords(x, z, hellTranslate, offset = 0) {
1919
return [(z * - 1) + offset, x + offset]
2020
}
2121

22-
export function reverseTranslateCoords(z, x, hellTranslate) {
22+
export function reverseTranslateCoords(z, x, hellTranslate, offset = 0) {
2323
if (hellTranslate) {
2424
x = x << 3
2525
z = z << 3
2626
}
2727

28-
return [x, z]
28+
return [x - offset, (z * - 1) - offset]
2929
}

0 commit comments

Comments
 (0)