Inventory click event sometimes does not trigger
AhplBusinessman opened this issue ยท 2 comments
Skript/Server Version
[21:03:21 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[21:03:21 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[21:03:21 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[21:03:21 INFO]: [Skript] Server Version: 1.20.6-148-20f5165 (MC: 1.20.6)
[21:03:21 INFO]: [Skript] Skript Version: 2.9.1 (skriptlang-github)
[21:03:21 INFO]: [Skript] Installed Skript Addons:
[21:03:21 INFO]: [Skript] - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[21:03:21 INFO]: [Skript] - SkBee v3.5.7 (https://github.com/ShaneBeee/SkBee)
[21:03:21 INFO]: [Skript] Installed dependencies: None
Bug Description
When using the inventory click event it seems that when I place an item into an empty slot around 5% of the time the event is simply not called. I've only observed this in inventories that are not the player's and it happens in both survival and creative. I encountered the original problem in 2.9.0 but am now using 2.9.1 and also temporarily tested on a 1.21 papermc build. I suspect this is a problem specifically with Skript because I could not replicate the same problem with Skript-Gui
I also know that this is also not other scripts interfering because the test script is the only enabled script.
Expected Behavior
The event is called 100% of the time
Steps to Reproduce
on all inventory click:
broadcast 1,(random character between "a" to "z") # random character for line differenciation
cancel event if event-inventory != player's inventory
Attempt to place an item into an empty slot of an inventory that is not your own
Errors or Screenshots
2024-08-08.21-17-34.mp4
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
The inventory drag event is what's firing, and that's separate from the inventory click event.