Skip to content

Commit

Permalink
use arrayset for ores to keep ordering consistent for getContainedOres
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Sep 17, 2024
1 parent 3596645 commit 00c4d57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.sinthoras.visualprospecting.Tags;

import gregtech.common.OreMixBuilder;
import it.unimi.dsi.fastutil.shorts.ShortArraySet;
import it.unimi.dsi.fastutil.shorts.ShortCollection;
import it.unimi.dsi.fastutil.shorts.ShortOpenHashSet;
import it.unimi.dsi.fastutil.shorts.ShortSet;
Expand All @@ -24,7 +25,7 @@ public class VeinType {
public final short sporadicOreMeta;
public final int minBlockY;
public final int maxBlockY;
public final ShortSet oresAsSet = new ShortOpenHashSet();
public final ShortSet oresAsSet = new ShortArraySet();
private final List<String> containedOres = new ArrayList<>();
private boolean isHighlighted = true;
private String primaryOreName = "";
Expand Down

0 comments on commit 00c4d57

Please sign in to comment.