Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent day cycle on the client when using fixed player time #11924

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SoSeDiK
Copy link
Contributor

@SoSeDiK SoSeDiK commented Jan 6, 2025

player.setPlayerTime(time, false) allows freezing time on the client, as per javadoc:

When using non relative time the player's time will stay fixed at the
specified time parameter.

Doing so makes the client move the skybox forward, and then jump back due to the server resyncing the time, causing a constant skybox stutter.
This can be prevented by accounting for a non-relative (fixed/frozen) player time alongside the real world's day cycle gamerule.


tldr; avoid skybox stutter by accounting for frozen player time / tell the client to not move skybox when using frozen player time

@SoSeDiK SoSeDiK requested a review from a team as a code owner January 6, 2025 10:27
@lynxplay lynxplay added the type: bug Something doesn't work as it was intended to. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something doesn't work as it was intended to.
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

2 participants