mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-17 11:05:15 +00:00
Fix buffer IO mode handling - #1627
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user