Skip to content

Commit

Permalink
Fix crash with IC2Classic, Closes CyclopsMC/CyclopsCore#28
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 11, 2016
1 parent fc103bb commit d242ce3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ public String getComment() {
@Override
public void onInit(Step initStep) {
if (initStep == Step.PREINIT) {
// Don't crash when IC2Classic is loaded.
// Because it shares the same main mod id with IC2Exp
// https://github.com/CyclopsMC/CyclopsCore/issues/28
try {
Class.forName("ic2.core.item.tool.ItemToolWrenchElectric");
} catch (ClassNotFoundException e) {
return;
}

CapabilityConstructorRegistry registry = CommonCapabilities._instance.getCapabilityConstructorRegistry();

// Wrench
Expand Down

1 comment on commit d242ce3

@Speiger

This comment was marked as off-topic.

Please sign in to comment.