mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Merge pull request #2505 from quat1024/fixChestCaps
Fix #2497 by removing unneeded special-casing for TileEntityChest
This commit is contained in:
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