Error getting the number of items in the player's inventory #4643
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
legacy versions
Issues or PRs which are only applicable for the server versions 1.9-1.12
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Skript/Server Version
https://pastenow.ru/4ded59b394014ff7c5b4ea07b3ad4677
Bug Description
Writing the sale of items, I had an error with getting the number of items in the inventory. In version 2.6.1 of the plugin, it returns not quite correctly, which cannot be said about 2.5.3
Expected Behavior
In plugin version 2.6.1 I think the values should be returned more precise than 64 and 128. In plugin version 2.5.3 everything works fine. Please see my code, and screenshots of the accompanying version results.
My code: https://pastenow.ru/9d54f588ba581c892e4f17f07490364c
2.6.1: https://pastenow.ru/4ded59b394014ff7c5b4ea07b3ad4677
2.5.3: https://pastenow.ru/c163613a59c6f0b2b964bca92df0cd90
Steps to Reproduce
In plugin version 2.6.1 I think the values should be returned more precise than 64 and 128. In plugin version 2.5.3 everything works fine.
Errors or Screenshots
No response
Other
If this is a bug in version 1.12.2, then I understand everything, but still, please fix it.
If this is possible to implement on version 1.12.2, please update the plugin in releases if possible. Thanks!
Agreement
The text was updated successfully, but these errors were encountered: