Daily temperature is lower at noon and higher at midnight
Leinourdian opened this issue ยท 1 comments
Describe the bug
-
What did you expect to happen?
In debug mode I'd expect the "Daily" temperature to be highest at noon and lowest at midnight. This would make intuitive sense as generally temperature is higher during the day IRL. -
What actually happened instead (i.e. what was the bug)
Instead, the "Daily" temperature is highest at midnight and lowest at noon. I think this might lead to unintuitive situations where ice can melt at night.
To Reproduce
Make sure debug mode is on so you can see the "Daily" temperature. Press F3 and see how the "Daily" temperature changes with time of day.
Meta Info
- TFC Version: 1.0.1.128
- No other mods were included.
To Fix
I think this is caused by a simple math error over here:
I think it should read like this instead:
float hourModifier = (hourOfDay / 6f) - 1f;