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 client detection #20

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

Kogepan229
Copy link
Contributor

Fixes GTNewHorizons/GT-New-Horizons-Modpack#17546

In SP, Nutrition.proxy.isClient() is true on both Client Thread and Server Thread.
Therefore, at this method, hungerValues ​​may change between the time hungerValues was determined to be empty and the time it was popped.

Also, the real cause of the bug fixed in #19 was that pushHungerChange was called on both client and server, while popHungerChange was only called on the client.

@Dream-Master Dream-Master requested a review from a team October 2, 2024 12:22
@Dream-Master Dream-Master merged commit 236e675 into GTNewHorizons:master Oct 2, 2024
1 check passed
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.7 Beta 2 Nutrition crash while eating calamari causing corrupted save
3 participants