Bernasss12 / BetterEnchantedBooks

Makes it easier to identify different enchantment books.
MIT License
12 stars 9 forks source link

[Bug] Division by 0 crash when drawing tooltip with "none" sorting mode #27

Closed LemmaEOF closed 3 years ago

LemmaEOF commented 3 years ago

In some circumstances, the game can divide by zero when attempting to draw tooltips for unenchanted but enchantable items while on a sorting mode of none.

Originally occurred when shift-clicking a pair of unenchanted books into the crafting table

Minecraft: 1.16.5 BEBooks: 1.2.4

Crash log link

Bernasss12 commented 3 years ago

Thank you for the report! Hopefully this will prevent that issue from happening anymore, at least until I refactor the whole mod. I'm hoping to change everything soon.