Skip to content

Commit

Permalink
Update to throw an exception on servers if no EMC mod is detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mordenkainen committed Aug 9, 2015
1 parent 60117e9 commit 8438b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public void preInit(FMLPreInitializationEvent event) {

@EventHandler
public void init(FMLInitializationEvent event) {
if(!Loader.isModLoaded("ProjectE") && !Loader.isModLoaded("EE3")) {
//if(!Loader.isModLoaded("ProjectE") && !Loader.isModLoaded("EE3")) {
proxy.unmetDependency();
}
//}

itemEMCCrystal = new ItemEMCCrystal();
GameRegistry.registerItem(itemEMCCrystal, "EMCCrystal");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ public class CommonProxy {

public void initRenderers() {}

public void unmetDependency() {}
public void unmetDependency() {
throw new RuntimeException("Equivalent Energistics requires either Equivalent Exchange 3 or ProjectE to be installed!");
}
}

0 comments on commit 8438b55

Please sign in to comment.