From 89e71b74736725381cdf4fa2d19ba30c4e92a7e4 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 23 Jan 2025 00:27:55 -0600 Subject: fix neoforge regression --- src/version.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/version.rs b/src/version.rs index b844f23..3f5caba 100644 --- a/src/version.rs +++ b/src/version.rs @@ -321,7 +321,9 @@ impl CompleteVersion { self.downloads.entry(*dltype).or_insert_with(|| dl.clone()); } - self.libraries.splice(0..0, other.libraries.iter().cloned()); + // we use extend here instead of splice for library resolution priority reasons + // (libraries earlier in the list will override libraries later in the list) + self.libraries.extend(other.libraries.iter().cloned()); replace_missing!(logging); replace_missing!(main_class); -- cgit v1.2.3-70-g09d2