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

distinguish between null and empty map in API #10829

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

Machine-Maker
Copy link
Member

Since we distinguish between null and empty when applying attributes to an itemstack, we also have to make a distinction in the full map setter. Calling the setter with null, shouldn't create an empty attribute modifier map.

@Machine-Maker Machine-Maker requested a review from a team as a code owner May 30, 2024 15:01
@Machine-Maker Machine-Maker force-pushed the fix/meta-attributes branch from e9de6d4 to b9613cb Compare May 31, 2024 16:14
@lynxplay lynxplay force-pushed the fix/meta-attributes branch from b9613cb to 4673bc2 Compare June 1, 2024 14:32
@Machine-Maker Machine-Maker merged commit a6ceda1 into PaperMC:master Jul 16, 2024
3 checks passed
@Machine-Maker Machine-Maker deleted the fix/meta-attributes branch July 16, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants