File tree 1 file changed +4
-3
lines changed
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"
20
20
import topoIcon from "../images/topo.png"
21
21
import topoIconActive from "../images/topo-active.png"
22
22
import topoIconDisabled from "../images/topo-disabled.png"
23
- import { translateCoords } from "./utils"
23
+ import { reverseTranslateCoords , translateCoords } from "./utils"
24
24
import undergroundIcon from "../images/underground.png"
25
25
import undergroundIconActive from "../images/underground-active.png"
26
26
@@ -223,11 +223,12 @@ class Journeymap {
223
223
continue
224
224
}
225
225
226
- const hellTranslate = this . currentDim === "minecraft:the_nether"
226
+ const reverseHellTranslate = ( ( this . currentDim !== "minecraft:the_nether" ) && ( waypoint . pos . primaryDimension === "minecraft:the_nether" ) )
227
227
228
228
const posX = waypoint . pos . x ;
229
229
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 )
231
232
232
233
const masked = waypoint . icon . resourceLocation . startsWith ( "journeymap" ) || waypoint . icon . color !== null
233
234
You can’t perform that action at this time.
0 commit comments