Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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)
Expand All @@ -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();
Expand Down Expand Up @@ -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();
}
Expand Down