Possible fix is attached.
Description and steps to reproduce:
At noon (time 6000), the clock spins once, under certain conditions.
Slow way, no /time commands
Start a world, /give yourself a clock.
Allow 5 minutes to pass, without advancing /time.
You won't see the clock spin at the first noon.
Allow 20 more minutes to pass, without advancing /time.
The clock will spin around at any noontime after the first noon.
Faster way
Start a world, /give yourself a clock,
/time set noon
I reproduced this most reliably when I started near noontime. I couldn't tell you how near to noon is close enough to trigger this 100%, but setting to noon definitely works.
Close out of Minecraft entirely, relaunch, and open that world again.
/time set 5900
.. or any full day after: 29900, 53900, etc
it spins to get to this time, but this is not the bug.
The clock will spin around at noontime.
If you play around and issue too many /time commands, such as /time set day, the spinning at noon can stop happening – unless you relaunch Minecraft, then you can make it happen again.
Wasn't happening in 1.8.8, but started happening in the first 1.9 snapshots.
Possibly related to MC-83905 where the compass spins when the player faces south.
Linked issues
is duplicated by 1
Attachments
Comments 15
Users can hide most of the list by clicking on the three small arrows at the end of the list if they don't want to see it, but having more complete affected version information helps us with tracking and searching for bugs. So it's best not to remove them.
Attached is a javascript demo of a possible fix for the clock.
Code examples refer to (and the demo is based on) MCP 9.28.
It keeps certain angle variables within range using MathHelper.positiveModulo.
Specifically, here, the clock flips as the time reaches noon because the this.rotation is not being kept in range; the fix here is to apply MathHelper.positiveModulo to this.rotation after updating this.rotation, within the wobble function, rather than simply applying positiveModulo on the returned value of the wobble function.
Thanks Grum! Any chance the compass, MC-83905, is a similar fix? EDIT: Thanks for taking time on a Sunday afternoon!