
Why is my temperature NaN?
Windavilin opened this issue · 8 comments
This error still exists when logging out and logging back in;After restarting the client, I was marked as a ticketing player and unable to access the server
Ok, I will see if I can reproduce this and get a fix out soon.
It happens when I create a new world.
And sometimes when I create a new world, my body temperature is 98℃
And sometimes when I create a new world, it's -17℃ on the ground, but if I dive into the water, the environment temperature is 20℃
I think this has been a bug for a while. I should have a release out today for this.
Ok, fixed and released for all versions. This was (sort of) a math bug. Math.pow implementation returns NaN by specification when getting a power for negative numbers, even though it is technically a valid math problem. There aren't any situations without loading Primal Winter where this can occur, so it was working correctly. It was good that adding this mod exposed a math bug. Thanks for reporting!