File tree Expand file tree Collapse file tree
src/main/java/org/cyclops/structuredcrafting Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .cyclops .structuredcrafting ;
22
33import net .minecraft .world .item .CreativeModeTab ;
4+ import net .minecraftforge .fml .ModList ;
45import net .minecraftforge .fml .common .Mod ;
56import net .minecraftforge .fml .event .lifecycle .FMLCommonSetupEvent ;
67import org .apache .logging .log4j .Level ;
@@ -41,7 +42,9 @@ protected void loadModCompats(ModCompatLoader modCompatLoader) {
4142 super .loadModCompats (modCompatLoader );
4243
4344 // Capabilities
44- getCapabilityConstructorRegistry ().registerTile (BlockEntityStructuredCrafter .class , new WorkerStructuredCrafterTileCompat ());
45+ if (ModList .get ().isLoaded ("commoncapabilities" )) {
46+ getCapabilityConstructorRegistry ().registerTile (BlockEntityStructuredCrafter .class , new WorkerStructuredCrafterTileCompat ());
47+ }
4548 }
4649
4750 @ Override
You can’t perform that action at this time.
0 commit comments