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

Properly read/write food components #843

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Conversation

eclipseisoffline
Copy link
Contributor

@eclipseisoffline eclipseisoffline commented Jul 24, 2024

This fixes reading/writing food item data components with a using_converts_to field. Over network, this field has a boolean preceding it which indicates if the field is present, which wasn't read/written, causing the component to be read/written incorrectly. This was fixed by using readNullable and writeNullable in the respective read and write methods.

@eclipseisoffline eclipseisoffline changed the title Properly read food components Properly read/write food components Jul 24, 2024
@Camotoy Camotoy merged commit ab9bcbe into GeyserMC:master Jul 25, 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 participants