From 47584ceee13c8ed0030112c1df484ada0d3c9b45 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:32:04 -0700 Subject: [PATCH] Use declaration order for state holder property iteration Mostly an aesthetic change for serialization, should not have any impact on performance or correctness. --- .../util/ZeroCollidingReferenceStateTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ca/spottedleaf/moonrise/patches/blockstate_propertyaccess/util/ZeroCollidingReferenceStateTable.java b/src/main/java/ca/spottedleaf/moonrise/patches/blockstate_propertyaccess/util/ZeroCollidingReferenceStateTable.java index b5335a2a..866f38eb 100644 --- a/src/main/java/ca/spottedleaf/moonrise/patches/blockstate_propertyaccess/util/ZeroCollidingReferenceStateTable.java +++ b/src/main/java/ca/spottedleaf/moonrise/patches/blockstate_propertyaccess/util/ZeroCollidingReferenceStateTable.java @@ -9,7 +9,7 @@ import it.unimi.dsi.fastutil.objects.ObjectIterator; import it.unimi.dsi.fastutil.objects.ObjectSet; import it.unimi.dsi.fastutil.objects.Reference2ObjectMap; -import it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet; +import it.unimi.dsi.fastutil.objects.ReferenceArrayList; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; @@ -27,7 +27,7 @@ public final class ZeroCollidingReferenceStateTable { public ZeroCollidingReferenceStateTable(final Collection> properties) { this.propertyToIndexer = new Int2ObjectOpenHashMap<>(properties.size()); - this.properties = new ReferenceOpenHashSet<>(properties); + this.properties = new ReferenceArrayList<>(properties); final List> sortedProperties = new ArrayList<>(properties);