Skip to content

Commit 32f479d

Browse files
committed
nether waypoint fixes
1 parent dc23d1d commit 32f479d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/js/journeymap.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import nightIconDisabled from "../images/night-disabled.png"
2020
import topoIcon from "../images/topo.png"
2121
import topoIconActive from "../images/topo-active.png"
2222
import topoIconDisabled from "../images/topo-disabled.png"
23-
import {translateCoords} from "./utils"
23+
import {reverseTranslateCoords, translateCoords} from "./utils"
2424
import undergroundIcon from "../images/underground.png"
2525
import undergroundIconActive from "../images/underground-active.png"
2626

@@ -223,11 +223,12 @@ class Journeymap {
223223
continue
224224
}
225225

226-
const hellTranslate = this.currentDim === "minecraft:the_nether"
226+
const reverseHellTranslate = ((this.currentDim !== "minecraft:the_nether") && (waypoint.pos.primaryDimension === "minecraft:the_nether"))
227227

228228
const posX = waypoint.pos.x;
229229
const posZ = waypoint.pos.z;
230-
const coords = translateCoords(posX + 0.5, posZ + 0.5, hellTranslate)
230+
231+
const coords = reverseTranslateCoords(posX + 0.5, posZ + 0.5, reverseHellTranslate)
231232

232233
const masked = waypoint.icon.resourceLocation.startsWith("journeymap") || waypoint.icon.color !== null
233234

0 commit comments

Comments
 (0)