Hide EC stuff if EC is not loaded. (#312)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Ethryanandgithub-actions[bot] authored and GitHub committed 2025-06-17 16:24:33 +02:00
1 parent 0095f69da2
commit 88c5b6be72
1 file changed
+6
@@ -14,7 +14,9 @@ import net.minecraft.world.World;
import com.glodblock.github.FluidCraft;
import com.glodblock.github.common.item.FCBaseItem;
import com.glodblock.github.util.ModAndClassUtil;
import codechicken.nei.api.API;
import cpw.mods.fml.common.registry.GameRegistry;
/**
@@ -38,6 +40,10 @@ public class ProxyItem extends FCBaseItem {
@Override
public FCBaseItem register() {
GameRegistry.registerItem(this, "ec2placeholder." + name, FluidCraft.MODID);
if (!ModAndClassUtil.EC2) {
API.hideItem("ec2placeholder." + name);
}
return this;
}