pdinklag / MinecraftStats

A Minecraft player statistics browser for the web - supports 1.13 and later!
https://discord.gg/brH5PGG8By
Other
227 stars 53 forks source link

Remove StatDiffReader for 'Nether Wart' and 'Sugar Cane' harvesting stats #184

Closed DaMarine closed 2 years ago

DaMarine commented 2 years ago

Fixes issue https://github.com/pdinklag/MinecraftStats/issues/161 where stats for these items could end up in the negative if you used more of these items than you harvested yourself, as commonly seen on Survival servers. This is a similar fix to https://github.com/pdinklag/MinecraftStats/issues/153, and the correct behaviour has always existed in harvest_bamboo.py, so this change simply replicates it for harvesting Nether Warts and Sugar Cane.

Also removes an erroneous comment in collect_shroom.py left over from changes in issue https://github.com/pdinklag/MinecraftStats/issues/153 / commit https://github.com/pdinklag/MinecraftStats/commit/5025520d496c91093dad3e53f98bf291d4044343

pdinklag commented 2 years ago

Thank you!