Fix buffer IO mode handling - #1627

This commit is contained in:
Matthias Mann committed 2015-01-11 00:17:09 +01:00
1 parent a68fd3e450
commit d55d1b231d
2 files changed
+6 -2

No files matched your search

@@ -651,6 +651,10 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
if(!slotDefinition.isOutputSlot(slot)) {
return false;
}
return canExtractItem(slot, itemstack);
}
protected boolean canExtractItem(int slot, ItemStack itemstack) {
if(inventory[slot] == null || inventory[slot].stackSize < itemstack.stackSize) {
return false;
}