fixed crate input stack automation
crate was checking for perfect equal stacks instead of just itemID & meta.
This commit is contained in:
parent
a2dea095b1
commit
2f43204498
1 changed files with 2 additions and 12 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue