Skip to content

Commit

Permalink
Don't try to load TOP modules if TOP isn't installed xD
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Jan 10, 2025
1 parent cdd9ff1 commit 628ac58
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 628ac58

Please sign in to comment.