From 0758ad752bc9c7257638f80e73f489236e546ee3 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Sat, 12 Jul 2014 21:02:38 +0100 Subject: [PATCH] Fix un-checked MFR API usage --- .../java/mekanism/common/transporter/TransporterManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/mekanism/common/transporter/TransporterManager.java b/src/main/java/mekanism/common/transporter/TransporterManager.java index c8ef81345..291859282 100644 --- a/src/main/java/mekanism/common/transporter/TransporterManager.java +++ b/src/main/java/mekanism/common/transporter/TransporterManager.java @@ -17,6 +17,8 @@ import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; +import cpw.mods.fml.common.Loader; + import powercrystals.minefactoryreloaded.api.IDeepStorageUnit; public class TransporterManager @@ -100,7 +102,7 @@ public class TransporterManager } } - if(inv instanceof IDeepStorageUnit) + if(Loader.isModLoaded("MinefactoryReloaded") && inv instanceof IDeepStorageUnit) { return; }