Allows an Item Handler for null directions in TileInventory

This commit is contained in:
WayofTime 2016-06-29 08:26:24 -04:00
parent 1836fc742d
commit a019bedd4d

View file

@ -312,6 +312,9 @@ public class TileInventory extends TileEntity implements IInventory
case WEST: case WEST:
return (T) handlerWest; return (T) handlerWest;
} }
} else if (facing == null && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
{
return (T) handlerDown;
} }
return super.getCapability(capability, facing); return super.getCapability(capability, facing);