Universal Tweaks

Universal Tweaks

871k Downloads

Login hp rounding issue

FakeDomi opened this issue ยท 4 comments

commented

Login hp can get rounded down to 0 when you have a lot of max hp and only 1 hp.

https://cdn.discordapp.com/attachments/895732613090779189/1088965817502273567/image.png

On login, it doesn't produce a death message and in combination with Corail Tombstone it wipes your main inventory (haven't tried without Corail, it also doesn't wipe baubles or cosmetic armor).

commented

Shouldn't it be 0.01F?
I'd vouch for a completely different system altogether since this conversion isn't even precise enough for me with 130 max hp - I log out with 1 hp, and back in with 2.

commented

Granted, not too content with the current implementation either.

commented

Alright, the modern Mixin solution from Max Health Fix has far less bullshit involved. Tests turned out positive.
@FakeDomi Can you test again with this build and report back? Danke!

commented

Seems good, haven't noticed any weirdness yet.