Skip to content

Commit

Permalink
attempt to fix waypoint position
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Jun 21, 2024
1 parent 6a966df commit c9fc5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export function translateCoords(x, z, hellTranslate, offset = 0) {
return [(z * - 1) + offset, x + offset]
}

export function reverseTranslateCoords(z, x, hellTranslate) {
export function reverseTranslateCoords(z, x, hellTranslate, offset = 0) {
if (hellTranslate) {
x = x << 3
z = z << 3
}

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

0 comments on commit c9fc5e6

Please sign in to comment.