From 00c4d57da6932611ea78369b1d3a3cbfe9d31bb5 Mon Sep 17 00:00:00 2001 From: Lyfts <127234178+Lyfts@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:41:29 +0200 Subject: [PATCH] use arrayset for ores to keep ordering consistent for getContainedOres --- .../visualprospecting/database/veintypes/VeinType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sinthoras/visualprospecting/database/veintypes/VeinType.java b/src/main/java/com/sinthoras/visualprospecting/database/veintypes/VeinType.java index c99bbf3..96cc59a 100644 --- a/src/main/java/com/sinthoras/visualprospecting/database/veintypes/VeinType.java +++ b/src/main/java/com/sinthoras/visualprospecting/database/veintypes/VeinType.java @@ -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; @@ -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 containedOres = new ArrayList<>(); private boolean isHighlighted = true; private String primaryOreName = "";