uodated tilehopper to return true rather than attempting to scan the inventory attached
This commit is contained in:
parent
d559946562
commit
b1064b659f
1 changed files with 1 additions and 11 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue