Earthcomputer / EnchantmentCracker

Cracking the XP seed in Minecraft and choosing your enchantments
MIT License
1.04k stars 91 forks source link

Prevent divide by 0 #319

Closed Phoenix-Starlight closed 4 months ago

Phoenix-Starlight commented 2 years ago

Added in a ternary operation so that if it evaluates to 0 it will become 1 instead. (The only issue I can see is that the user's computer dies or hangs possibly.. although then everything is running on the same thread/core)

EDIT: Fixes #273