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

"Fix" world time.... #693

Merged
merged 2 commits into from
Oct 30, 2024
Merged

"Fix" world time.... #693

merged 2 commits into from
Oct 30, 2024

Conversation

mitchej123
Copy link
Collaborator

@mitchej123 mitchej123 commented Oct 30, 2024

Turns out I had "doDaylightCycle" off... so world time never incremented. Total world time unconditionally increments....

        this.func_82738_a(this.getTotalWorldTime() + 1L); // Increment Total Time unconditionally

        if (this.getGameRules().getGameRuleBooleanValue("doDaylightCycle")) {
            this.setWorldTime(this.getWorldTime() + 1L);
        }

@mitchej123 mitchej123 merged commit 538b388 into master Oct 30, 2024
1 check passed
@mitchej123 mitchej123 deleted the worldtime branch October 30, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants