From 9df2de8b456bb3a667a010e118f9725cbe7bc571 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 13 Apr 2024 22:32:17 -0400 Subject: [PATCH] feat: use a crash report for the duplicated skytils check --- .../skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/gg/skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java b/src/main/java/gg/skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java index 709e4b0b0..3ee5f8612 100644 --- a/src/main/java/gg/skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java +++ b/src/main/java/gg/skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java @@ -19,6 +19,7 @@ package gg.skytils.skytilsmod.tweaker; import com.google.common.collect.Sets; +import gg.skytils.earlytweaker.utils.Utils; import sun.misc.CompoundEnumeration; import java.io.IOException; @@ -40,7 +41,8 @@ public static void checkForDuplicates() throws IOException { files.add(url.toString()); } if (files.size() > 1) { - throw new RuntimeException("Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files); + String message = "Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files; + Utils.makeCrashReport(new RuntimeException(message), "Duplicate Skytils classes found!"); } } }