Skip to content

Commit

Permalink
removed all ldlib from main gtceu class
Browse files Browse the repository at this point in the history
  • Loading branch information
omergunr100 committed Dec 28, 2024
1 parent fe195e5 commit ffee50b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/com/gregtechceu/gtceu/GTCEu.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import com.gregtechceu.gtceu.common.CommonProxy;
import com.gregtechceu.gtceu.utils.FormattingUtil;

import com.lowdragmc.lowdraglib.LDLib;

import net.minecraft.client.Minecraft;
import net.minecraft.core.RegistryAccess;
import net.minecraft.core.registries.BuiltInRegistries;
Expand All @@ -21,6 +19,8 @@
import net.minecraftforge.fml.loading.FMLPaths;
import net.minecraftforge.server.ServerLifecycleHooks;

import dev.emi.emi.config.EmiConfig;
import me.shedaniel.rei.api.client.REIRuntime;
import org.jetbrains.annotations.ApiStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -169,13 +169,11 @@ public static boolean isJeiLoaded() {
}

public static boolean isReiLoaded() {
// todo: convert to base check after ui rework
return LDLib.isReiLoaded();
return isModLoaded(GTValues.MODID_REI) && !(isClientSide() || REIRuntime.getInstance().isOverlayVisible());
}

public static boolean isEmiLoaded() {
// todo: convert to base check after ui rework
return LDLib.isEmiLoaded();
return isModLoaded(GTValues.MODID_EMI) && !(isClientSide() || EmiConfig.enabled);
}

public static boolean isKubeJSLoaded() {
Expand Down

0 comments on commit ffee50b

Please sign in to comment.