Skip to content

Fix ItemStack matcher check#373

Open
WaitingIdly wants to merge 3 commits intoCleanroomMC:masterfrom
WaitingIdly:fix-matcher-check
Open

Fix ItemStack matcher check#373
WaitingIdly wants to merge 3 commits intoCleanroomMC:masterfrom
WaitingIdly:fix-matcher-check

Conversation

@WaitingIdly
Copy link
Collaborator

changes in this PR:

  • fix matcher check in #test - now if matcher is defined, it checks that, and if it isnt, it checks OreDictionary#itemMatches
  • make it so withNbtFilter, whenNoNbt, and whenAnyNbt all copy and modify the copy, instead of mutating the current (the other similar methods already do this).
  • make it so whenNoNbt and whenAnyNbt also check OreDictionary#itemMatches.

this fixes something like item('minecraft:golden_shovel').whenAnyDamage() not working because it fails the OreDictionary#itemMatches. this issue was introduced in #362.

@WaitingIdly WaitingIdly added the bug Something isn't working label Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant