-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Removing item from inventory ignores extra data on the item #2354
Comments
I just also found out that this issue appeared in 2.4-beta5 version. In 2.4-beta4 the code above works properly and the issue is not present. |
Seems like it's removing an |
I can confirm this as an issue and it can cause huge issues in some cases, hence the high priority. Personal example: on my server I have a script which allows players to sent items directly to each other (e.g. Due to this bug, If a player is trying to send a newly crafted diamond pickaxe, it will instead save the plain pickaxe in a variable, give that to the target player (putting it in their queue), and remove the first diamond pickaxe it finds in the user's inventory instead of the correct one that they're holding. Often that will end up being their main pick over in one of their first couple of slots, which ends up being straight up deleted as a result. I had to update multiple scripts to use skript-mirror to remove the item from the player's inventory instead of using Skript's |
I hope my quick fix doesn't break anything else. |
@bensku How reassuring! 😅 |
It was fixed in beta6 but appeared again in beta7. #2404 |
Description
I found it impossible to remove only not enchanted items from the inventory.
Steps to Reproduce
/test
as a playerExpected Behavior
Only one pickaxe should be removed from inventory, as the {_item} variable contains the exact item, not itemtype. Instead, all 3 pickaxes are removed.
Server Information
Additional Context
In this issue I am assuming that
diamond pickaxe
anddiamond pickaxe of efficiency 1
are not the same things when parsed asitem
- at least that's what I found in the documentation:The text was updated successfully, but these errors were encountered: