diff --git a/src/main/scala/li/cil/oc/integration/forestry/UpgradeBeekeeperUtil.java b/src/main/scala/li/cil/oc/integration/forestry/UpgradeBeekeeperUtil.java index fc4f2c4098..536efebf5b 100644 --- a/src/main/scala/li/cil/oc/integration/forestry/UpgradeBeekeeperUtil.java +++ b/src/main/scala/li/cil/oc/integration/forestry/UpgradeBeekeeperUtil.java @@ -17,7 +17,7 @@ * */ public final class UpgradeBeekeeperUtil { - private static final boolean GT_LOADED = Loader.isModLoaded("gregtech"); + private static final boolean GT5U_NH_LOADED = Loader.isModLoaded("gregtech_nh"); private UpgradeBeekeeperUtil() {} /** Returns an IBeeHousing TileEntity at position pos. Can be an Industrial Apiary */ @@ -32,7 +32,7 @@ public static IBeeHousing getBeeHousingAt(BlockPosition pos) { if (te instanceof IBeeHousing) return (IBeeHousing)te; - if (!GT_LOADED) + if (!GT5U_NH_LOADED) return null; // Scala doesn't compile if these checks are of the form (a instanceof B b) @@ -46,7 +46,7 @@ public static IBeeHousing getBeeHousingAt(BlockPosition pos) { /** Returns a Tile Entity for Industrial Apiaries at position pos, or null if none exist */ public static MTEIndustrialApiary getGTIApiaryAt(BlockPosition pos) { - if (!GT_LOADED || pos.world().isEmpty()) + if (!GT5U_NH_LOADED || pos.world().isEmpty()) return null; World world = pos.world().get(); @@ -86,7 +86,7 @@ public static boolean swapDrone(BlockPosition pos, IInventory hostInv, int slot) } public static int getMaxIndustrialUpgradeCount() { - if (!GT_LOADED) + if (!GT5U_NH_LOADED) return 0; return MTEIndustrialApiary.getMaxUpgradeCount(); }