Fix un-checked MFR API usage

This commit is contained in:
Ben Spiers 2014-07-12 21:02:38 +01:00
parent 79f27e9d11
commit 0758ad752b

View file

@ -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;
}