Skip to content

Commit

Permalink
Fix crash if TOP is not installed (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron authored Jan 10, 2025
1 parent cdd9ff1 commit 712abd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/zorbatron/zbgt/common/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import gregtech.api.cover.CoverDefinition;
import gregtech.api.unification.material.event.MaterialEvent;
import gregtech.api.unification.material.event.MaterialRegistryEvent;
import gregtech.api.util.Mods;

@Mod.EventBusSubscriber(modid = ZBGTCore.MODID)
public class CommonProxy {
Expand All @@ -46,7 +47,9 @@ public void preInit() {
}

public void init() {
ZBGTTOPModule.init();
if (Mods.TheOneProbe.isModLoaded()) {
ZBGTTOPModule.init();
}
}

public void postInit() throws IOException {
Expand Down

0 comments on commit 712abd6

Please sign in to comment.