calucation of daytime and night time fractions were being done using integer division resulting in either a 0 or 1.
-change currentMinutes type from int to double, so that floating point division would be used.
-pulled out day time and night time fractions into their own doubles for clarity.
-type cast return values of calculateWorldTime from double to long to maintain previous structure.
calucation of daytime and night time fractions were being done using integer division resulting in either a 0 or 1.
-change currentMinutes type from int to double, so that floating point division would be used.
-pulled out day time and night time fractions into their own doubles for clarity.
-type cast return values of calculateWorldTime from double to long to maintain previous structure.
should have included this in the first comment...
compiled? - yes
loaded in papermc? - yes
fixed issue? - tested at 11:00, sun was over head( a bit to the east) instead of at horizon.
should have included this in the first comment...
compiled? - yes
loaded in papermc? - yes
fixed issue? - tested at 11:00, sun was over head( a bit to the east) instead of at horizon.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
calucation of daytime and night time fractions were being done using integer division resulting in either a 0 or 1.
-change currentMinutes type from int to double, so that floating point division would be used.
-pulled out day time and night time fractions into their own doubles for clarity.
-type cast return values of calculateWorldTime from double to long to maintain previous structure.
should have included this in the first comment...
compiled? - yes
loaded in papermc? - yes
fixed issue? - tested at 11:00, sun was over head( a bit to the east) instead of at horizon.
I tested this and it does seem to resolve #11. Thanks for the help!