mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix #2497 by removing unneeded special-casing for TileEntityChest (this caused problems with other mods extending TileEntityChest)
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user