Keep order of sources in PackRepository (#9702)

Co-authored-by: dhyces <10985914+dhyces@users.noreply.github.com>
This commit is contained in:
Paint_Ninjaanddhyces authored and GitHub committed 2023-09-02 16:21:06 -07:00
1 parent e69f5e262a
commit 12d24df4f6
1 file changed
+1 -1
@@ -5,7 +5,7 @@
public PackRepository(RepositorySource... p_251886_) {
- this.f_10497_ = ImmutableSet.copyOf(p_251886_);
+ this.f_10497_ = new java.util.HashSet<>(List.of(p_251886_)); //Forge: This needs to be a mutable set, so that we can add to it later on.
+ this.f_10497_ = new java.util.LinkedHashSet<>(List.of(p_251886_)); //Forge: This needs to be a mutable set, so that we can add to it later on.
}
public void m_10506_() {