File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import nightIconDisabled from "../images/night-disabled.png"
2020import topoIcon from "../images/topo.png"
2121import topoIconActive from "../images/topo-active.png"
2222import topoIconDisabled from "../images/topo-disabled.png"
23- import { translateCoords } from "./utils"
23+ import { reverseTranslateCoords , translateCoords } from "./utils"
2424import undergroundIcon from "../images/underground.png"
2525import 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
You can’t perform that action at this time.
0 commit comments