uodated tilehopper to return true rather than attempting to scan the inventory attached

This commit is contained in:
Andrew Meehan 2013-05-08 10:33:06 -04:00
parent d559946562
commit b1064b659f

View file

@ -111,17 +111,7 @@ public class TileHopper extends TileBuildCraft implements IInventory {
public boolean isStackValidForSlot(int i, ItemStack itemstack)
{
TileEntity tile = this.worldObj.getBlockTileEntity(xCoord, yCoord - 1, zCoord);
if(tile == null)
{
return false;
}
if(tile instanceof IInventory)
{
return ((IInventory)tile).isStackValidForSlot(i, itemstack);
}
return false;
return true;
}
}