fixted bug where time was only ever set to sunrise or sunset #12
Reference in New Issue
Block a user
No description provided.
Delete Branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!