diff --git a/src/main/java/com/gregtechceu/gtceu/integration/map/xaeros/worldmap/ore/OreVeinElementRenderProvider.java b/src/main/java/com/gregtechceu/gtceu/integration/map/xaeros/worldmap/ore/OreVeinElementRenderProvider.java index 02eccc32ff..3c88a08e86 100644 --- a/src/main/java/com/gregtechceu/gtceu/integration/map/xaeros/worldmap/ore/OreVeinElementRenderProvider.java +++ b/src/main/java/com/gregtechceu/gtceu/integration/map/xaeros/worldmap/ore/OreVeinElementRenderProvider.java @@ -2,6 +2,10 @@ import com.gregtechceu.gtceu.integration.map.xaeros.XaerosRenderer; +import net.minecraft.client.Minecraft; +import net.minecraft.resources.ResourceKey; +import net.minecraft.world.level.Level; + import xaero.map.WorldMap; import xaero.map.element.MapElementRenderProvider; @@ -15,7 +19,8 @@ public OreVeinElementRenderProvider() {} public void begin(int location, OreVeinElementContext context) { if (WorldMap.settings.waypoints) { - this.iterator = XaerosRenderer.oreElements.values() + ResourceKey currentDim = Minecraft.getInstance().level.dimension(); + this.iterator = XaerosRenderer.oreElements.row(currentDim).values() .stream() .map(element -> new OreVeinElement(element.getVein(), element.getName())) .iterator();