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

Add hunger when hit + Fix issue where hunger would go down despite hunger being disabled #1859

Closed
wants to merge 1 commit into from

Conversation

WillQizza
Copy link

Fixes #1857
Currently, if you disable food and attack another player, their hunger will go down despite food being disabled. The server does not send any attributes to the client from what I have seen. However, this PR solves this issue by resending their hunger if food is disabled and the server decides that they need to take hunger.

Additionally, according to https://minecraft.gamepedia.com/Hunger#Exhaustion_level_increase
Food is reduced when attacked which I also implemented.

@WillQizza
Copy link
Author

After further experimentation. This is not a full fix and in some cases, hunger will still fall. For that reason, I am closing this

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.

Hunger going down despite player food being disabled
1 participant