Fix #2497 by removing unneeded special-casing for TileEntityChest (this caused problems with other mods extending TileEntityChest)

This commit is contained in:
quat committed 2018-01-09 00:04:52 -05:00
1 parent 35bdd48eed
commit 37b3e36438
1 file changed
-6
@@ -40,12 +40,6 @@ public class InventoryHelper {
if(te == null)
return null;
if(te instanceof TileEntityChest) {
IItemHandler doubleChest = VanillaDoubleChestItemHandler.get((TileEntityChest) te);
if(doubleChest != VanillaDoubleChestItemHandler.NO_ADJACENT_CHESTS_INSTANCE)
return doubleChest;
}
IItemHandler ret = te.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, side) ?
te.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, side) : null;