Work around bug #1070

This commit is contained in:
raoulvdberge
2017-05-20 10:02:34 +02:00
parent 96c560db78
commit d98f35b439

View File

@@ -198,11 +198,13 @@ public class StackListItem implements IStackList<ItemStack> {
compare |= IComparer.COMPARE_DAMAGE;
}
ItemStack actualInput = list.get(input, compare);
if (actualInput != null) {
ItemStack taken = ItemHandlerHelper.copyStackWithSize(actualInput, input.getCount());
took[i] = taken;
list.remove(taken, taken.getCount());
}
}
}
return took;
}
}