This commit is contained in:
Robert Seifert 2013-05-25 01:49:31 -04:00
parent 54f7b4be6b
commit 6e1d387bf1

View file

@ -455,25 +455,12 @@ public class TileEntityCrate extends TileEntityAdvanced implements ITier, IInven
@Override
public boolean canInsertItem(int slot, ItemStack itemstack, int side)
{
ForgeDirection dir = ForgeDirection.getOrientation(side);
TileEntity ent = VectorHelper.getTileEntityFromSide(worldObj, new Vector3(this), dir);
if (ent instanceof TileEntityHopper)
{
// return false;
}
return this.isStackValidForSlot(slot, itemstack);
}
@Override
public boolean canExtractItem(int slot, ItemStack itemstack, int side)
{
ForgeDirection dir = ForgeDirection.getOrientation(side);
TileEntity ent = VectorHelper.getTileEntityFromSide(worldObj, new Vector3(this), dir);
if (ent instanceof TileEntityHopper)
{
// return false;
}
return true;
}
}