Jasa decided to erase my offset piece.
I'm not sure how to explain it, but setDayCycleTime() works fine even if getDayCycleTime() doesn't take in to account the offset.
setDayCycleTime(0); sets the daycycle to when the sun first rises.
setDayCycleTime(0.29); sets the daycycle to mid-day.
setDayCycleTime(0.58); sets it to the start of night.
I cant see where this takes in the current offset, if it does at all. Tested it in game, it did nothing.. Here's current code:
What am I doing wrong?
Just use setDayCycleTime();
The offset can be less than 0 and greater than 1 without causing any problems.