Skip to content

Commit

Permalink
Fix xaeros integration not filtering ore veins by dimension on worldm…
Browse files Browse the repository at this point in the history
…ap (#2531)
  • Loading branch information
omergunr100 authored Dec 12, 2024
1 parent ac947ed commit 05e5dea
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -15,7 +19,8 @@ public OreVeinElementRenderProvider() {}

public void begin(int location, OreVeinElementContext context) {
if (WorldMap.settings.waypoints) {
this.iterator = XaerosRenderer.oreElements.values()
ResourceKey<Level> currentDim = Minecraft.getInstance().level.dimension();
this.iterator = XaerosRenderer.oreElements.row(currentDim).values()
.stream()
.map(element -> new OreVeinElement(element.getVein(), element.getName()))
.iterator();
Expand Down

0 comments on commit 05e5dea

Please sign in to comment.