As discussed with lobtserjohn I have adjusted the public ItemStack addOutput(@Nonnull ItemStack stack) method. It now splits the stack into parts that are all smaller than 64. The bug should be fixed by that. I didn't test every block that uses the function but I tested some and all worked so far.
The method now returns an ItemStack. This information can be used to determine if the operation added all items to the inventory or not. That is why I adjusted the methods that used to check it wit the boolean return value. Now they check if the returned ItemStack has a count of 0 or not.
closes #398
As discussed with lobtserjohn I have adjusted the
public ItemStack addOutput(@Nonnull ItemStack stack)
method. It now splits the stack into parts that are all smaller than 64. The bug should be fixed by that. I didn't test every block that uses the function but I tested some and all worked so far. The method now returns an ItemStack. This information can be used to determine if the operation added all items to the inventory or not. That is why I adjusted the methods that used to check it wit the boolean return value. Now they check if the returned ItemStack has a count of 0 or not.