From b8aa5255a0fd1713cc71cc84dc7b6a4ba2059d38 Mon Sep 17 00:00:00 2001 From: FirstMegaGame4 <84094287+FirstMegaGame4@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:10:42 +0200 Subject: [PATCH] Remove Randomness when it should not be Random --- .../mmodding/gradle/api/mod/json/InjectedInterfaces.java | 7 ++----- .../com/mmodding/gradle/api/mod/json/ModEntrypoints.java | 2 +- .../com/mmodding/gradle/api/mod/json/QuiltModJson.java | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/mmodding/gradle/api/mod/json/InjectedInterfaces.java b/src/main/java/com/mmodding/gradle/api/mod/json/InjectedInterfaces.java index aeb69fa..958350a 100644 --- a/src/main/java/com/mmodding/gradle/api/mod/json/InjectedInterfaces.java +++ b/src/main/java/com/mmodding/gradle/api/mod/json/InjectedInterfaces.java @@ -3,15 +3,12 @@ import org.gradle.api.Action; import java.io.Serializable; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; +import java.util.*; import java.util.stream.Collectors; public class InjectedInterfaces implements Serializable { - private final Map> iifs = new HashMap<>(); + private final Map> iifs = new LinkedHashMap<>(); public boolean isEmpty() { return this.iifs.isEmpty(); diff --git a/src/main/java/com/mmodding/gradle/api/mod/json/ModEntrypoints.java b/src/main/java/com/mmodding/gradle/api/mod/json/ModEntrypoints.java index d150306..0e4dec9 100644 --- a/src/main/java/com/mmodding/gradle/api/mod/json/ModEntrypoints.java +++ b/src/main/java/com/mmodding/gradle/api/mod/json/ModEntrypoints.java @@ -11,7 +11,7 @@ public class ModEntrypoints implements Serializable { private final boolean isQuilt; - private final Map> entrypoints = new HashMap<>(); + private final Map> entrypoints = new LinkedHashMap<>(); public ModEntrypoints(boolean isQuilt) { this.isQuilt = isQuilt; diff --git a/src/main/java/com/mmodding/gradle/api/mod/json/QuiltModJson.java b/src/main/java/com/mmodding/gradle/api/mod/json/QuiltModJson.java index 02564b1..a48b137 100644 --- a/src/main/java/com/mmodding/gradle/api/mod/json/QuiltModJson.java +++ b/src/main/java/com/mmodding/gradle/api/mod/json/QuiltModJson.java @@ -23,7 +23,7 @@ public class QuiltModJson extends ModJson contributors = new HashMap<>(); + private final Map contributors = new LinkedHashMap<>(); private final QuiltAdvancedDependencies dependencies = new QuiltAdvancedDependencies(); private final QuiltSimpleDependencies recommendations = new QuiltSimpleDependencies(); private final QuiltSimpleDependencies suggestions = new QuiltSimpleDependencies();