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 bed night skip race condition #3067

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Conversation

appgurueu
Copy link
Contributor

Closes #3066 (partially, the other issue is an engine issue). How to test:

  • Reproduce the bug. This is easiest if you introduce a print in beds.skip_night. Otherwise, don't spam click too fast, or the daytime won't have changed when the next set time of day hits, so the days counter will only be incremented by one. You have a whole 2 seconds to make your clicks, make about 3-4 clicks in that time (definitely don't make clicks with a < 100 ms (serverstep) frequency).
  • Verify that the fix works.

@sfan5 sfan5 merged commit 3494233 into minetest:master Sep 29, 2023
1 check passed
MoNTE48 pushed a commit to MoNTE48/minetest_game that referenced this pull request Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spam-tapping on beds and more...
2 participants