Skip to content

Commit

Permalink
feat: use a crash report for the duplicated skytils check
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Apr 20, 2024
1 parent a43ab81 commit aa9199f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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!");
}
}
}

0 comments on commit aa9199f

Please sign in to comment.