Skip to content

Commit 7c94f70

Browse files
Use LinkedHashSet to try and preserve vanilla order during tag lookup
1 parent 6a002de commit 7c94f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/latvian/mods/kubejs/recipe/CachedTagLookup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public Map<TagKey<T>, Set<T>> keyToValue() {
9696

9797
for (var entry : map.entrySet()) {
9898
var k = TagKey.create(registry.key(), entry.getKey());
99-
keyToValue.put(k, Set.copyOf(entry.getValue()));
99+
keyToValue.put(k, new LinkedHashSet<>(entry.getValue()));
100100
}
101101
}
102102

0 commit comments

Comments
 (0)