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 a380fd6 commit 6a966df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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, offset = 0) {
export function reverseTranslateCoords(z, x, hellTranslate) {
if (hellTranslate) {
x = Math.floor(x * 8)
z = Math.floor(z * 8)
x = x << 3
z = z << 3
}

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

0 comments on commit 6a966df

Please sign in to comment.