add checks to 0 sized stacks

This commit is contained in:
PrototypeTrousers
2023-07-12 15:00:59 -03:00
parent 3c62ac79c3
commit f4303fc1ec
3 changed files with 15 additions and 10 deletions
@@ -113,7 +113,7 @@ public class IMEAdaptor extends InventoryAdaptor {
IAEItemStack out = null;
for (final IAEItemStack req : ImmutableList.copyOf(this.getList().findFuzzy(reqFilter, fuzzyMode))) {
if (req != null) {
if (req != null && req.getStackSize() > 0) {
req.setStackSize(amount);
out = this.target.extractItems(req, type, this.src);
if (out != null) {