From 91a574bb04e1516a2baa5a3a6d401960027d05d0 Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Fri, 2 Aug 2024 17:17:07 -0500 Subject: [PATCH] Reverse extraction order so that bottom of mod list is lowest priority and vice versa --- firestar/src/main/java/Gonzo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firestar/src/main/java/Gonzo.java b/firestar/src/main/java/Gonzo.java index dfb4ba8..a9948f4 100644 --- a/firestar/src/main/java/Gonzo.java +++ b/firestar/src/main/java/Gonzo.java @@ -31,6 +31,7 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; @@ -162,7 +163,9 @@ public class Gonzo { // overwrite assets with custom ones from each mod and/or perform operations as specified in mod's delete list // todo: implement RegEx functions after delete.txt - for (Main.Mod m : Main.Mods) { + List modsFlipped = Main.Mods; + Collections.reverse(modsFlipped); + for (Main.Mod m : modsFlipped) { if (m.enabled) { try { System.out.println("Firestar is extracting " + m.friendlyName + " by " + m.author);