JDKDigital / productive-bees

Useful bees
https://www.curseforge.com/minecraft/mc-mods/productivebees
Other
58 stars 40 forks source link

closes #398 fix big stacks #399

Closed AngryBacteria closed 1 year ago

AngryBacteria commented 1 year ago

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.