Disenchanter doesn't check if item "breaks" after damage.
roobscoob opened this issue ยท 2 comments
This call to .damage can make item's durability negative.
If the item's durability is negative, the disenchanter shouldn't return it (broken)
also, ItemStack::damage checks for Unbreaking. Not sure if this is intentional, but doesn't really make sense given the context of this item
Hey, thanks for bringing this to my attention! I've now changed the implementation to damage the stack directly and also handle the case that it breaks.
These changes are available in the 0.1.9+1.20.2 release
Cheers