There are some scenarios where a recipe can be infinitely be crafted. Crafting on creative mode will also cause this.
In those cases, shift-clicking on the output slot will eventually cause a Stack Overflow.
The solution for this is to limit the amount of times slotClick is invoked per craft, to some round number like 64.
I believe this can be done in retrySlotClick
There are some scenarios where a recipe can be infinitely be crafted. Crafting on creative mode will also cause this. In those cases, shift-clicking on the output slot will eventually cause a Stack Overflow.
The solution for this is to limit the amount of times
slotClick
is invoked per craft, to some round number like 64. I believe this can be done inretrySlotClick