Fixed a bug in the heat system.
Might of fixed some errors related to planets.