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 Incorrect BlockValues#isDefault #6876

Conversation

APickledWalrus
Copy link
Member

Description

This PR fixes a small but major mistake I made with the ItemType changes in #6798. I added a new BlockValues getter for Materials, but I accidentally marked the returned instance as NOT being default (i.e. having special block values). Of course, this is wrong because the BlockData used is freshly created. This caused many comparison issues as items without specific block values were considered as having them.


Target Minecraft Versions: any
Requirements: none
Related Issues:

@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 6, 2024
@APickledWalrus APickledWalrus changed the base branch from master to dev/feature July 6, 2024 19:39
Copy link
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Tested and appears to work perfectly!!!
Thanks for the fix
(I know my approval doesn't count, but you get it anyways, free of charge)

Copy link
Member

@AyhamAl-Ali AyhamAl-Ali left a comment

Choose a reason for hiding this comment

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

Don't worry about Kenzie, Pickle. I got you ;)

@sovdeeth sovdeeth added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Jul 7, 2024
@APickledWalrus APickledWalrus merged commit b0f48b9 into SkriptLang:dev/feature Jul 10, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/item-comparison-issue branch July 10, 2024 17:34
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. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants