TheRandomLabs / CurseAPI

A Java library for handling interactions with CurseForge.
MIT License
30 stars 3 forks source link

Fixed wrong values being picked for fileSize and md5 #6

Closed Heroco closed 5 years ago

Heroco commented 5 years ago

This commit fixes the values for the file size and md5 values in the CurseFile class.

I've tested that with different Minecraft and World of Warcraft mods and everything seems to work now.

Using the code in your example would output:

[INFO] File size: 1.12.2
[INFO] MD5: 80,906

After the commit this is correct to:

[INFO] File size: 252.30 KB
[INFO] MD5: 8c7fea8b779256a681ead355baa11be9
TheRandomLabs commented 5 years ago

Thanks, I've been neglecting this recently. I'll eventually rewrite CurseAPI so it's more maintainable for me.