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 ItemData#equals check #6888

Conversation

APickledWalrus
Copy link
Member

Description

This PR aims to fix an issue where ItemData#equals did not use the proper method of determining whether an ItemData represented an alias (e.g. a default item). This fixes an issue introduced by #6834 where code like equip the player with a diamond chestplate named "Test" did not place the armor in the correct slot.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.9 Targeting a 2.9.X version release labels Jul 10, 2024
Copy link
Member

@UnderscoreTud UnderscoreTud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests for the equip effect

@APickledWalrus APickledWalrus merged commit accb30d into SkriptLang:dev/feature Jul 12, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/is-of-type-comparison-issue branch July 12, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants