Skip to content

Commit aa9199f

Browse files
feat: use a crash report for the duplicated skytils check
1 parent a43ab81 commit aa9199f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/gg/skytils/skytilsmod/tweaker/DuplicateSkytilsChecker.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package gg.skytils.skytilsmod.tweaker;
2020

2121
import com.google.common.collect.Sets;
22+
import gg.skytils.earlytweaker.utils.Utils;
2223
import sun.misc.CompoundEnumeration;
2324

2425
import java.io.IOException;
@@ -40,7 +41,8 @@ public static void checkForDuplicates() throws IOException {
4041
files.add(url.toString());
4142
}
4243
if (files.size() > 1) {
43-
throw new RuntimeException("Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files);
44+
String message = "Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files;
45+
Utils.makeCrashReport(new RuntimeException(message), "Duplicate Skytils classes found!");
4446
}
4547
}
4648
}

0 commit comments

Comments
 (0)