TCLProject / ArsMagica2-5

Ars Magica 2.5
15 stars 8 forks source link

Fixed Solar and Lunar #19

Closed DrParadox7 closed 1 year ago

DrParadox7 commented 1 year ago

getWorldTime() returns the total time of the dimension, not its current time in ticks unlike I expected.

It makes the whole calculations for Solar and Lunar go out of whack after the first day is over.

This is fixed by applying a 24000 Modulus operator to it.

TCLProject commented 1 year ago

Looks good, thanks for the quick fix.