Skip to content

Conversation

AlexandreArcil
Copy link
Contributor

Reported by #4122

When right-clicking on a cake and InteractBlockEvent.Secondary is cancelled, the player's hunger level visually increases while on the server the value remains unchanged.
This PR fixes this by resynchronizing the food level when the event is cancelled.

The code is quite similar to what minecraft does in ServerPlayer#doTick.

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.

1 participant