fixed crate input stack automation

crate was checking for perfect equal stacks instead of just itemID &
meta.
This commit is contained in:
DarkGuardsman 2013-09-16 08:50:11 -04:00
parent a2dea095b1
commit 2f43204498

View file

@ -145,17 +145,7 @@ public class TileEntityCrate extends TileEntityInv implements IPacketReceiver, I
@Override
public boolean canStore(ItemStack stack, int slot, ForgeDirection side)
{
return this.sampleStack == null || stack != null && stack.equals(sampleStack);
}
@Override
public boolean canRemove(ItemStack stack, int slot, ForgeDirection side)
{
if (slot >= this.getSlotCount())
{
return false;
}
return true;
return this.sampleStack == null || stack != null && stack.isItemEqual(sampleStack);
}
/** Gets the current slot count for the crate */