Skip to content

Commit

Permalink
Throw an error if the ae2 jar doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Eufranio committed Oct 18, 2018
1 parent 29fe4d7 commit f6be208
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public class AEPMixinConfigPlugin implements IMixinConfigPlugin {
public void onLoad(String mixinPackage) {
try {
File ae2 = new File(new File("mods"), "ae2.jar");
if (!ae2.exists()) {
throw new RuntimeException("AEPatch2 cannot load, ae2.jar file was not found! Did you forget to rename it?");
}
((LaunchClassLoader) this.getClass().getClassLoader()).addURL(ae2.toURI().toURL());
CoreModManager.getReparseableCoremods().add(ae2.getName());
} catch (Exception e) {
Expand Down

0 comments on commit f6be208

Please sign in to comment.