-
Notifications
You must be signed in to change notification settings - Fork 122
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
Bypass Item Canel #340
Comments
Can you state a minimal code example for reproduction? Also the exact server version + mc client version. |
Sure! `new AnvilGUI.Builder()
|
bump Server: 1.20.4 |
Please try again with the latest version of AnvilGUI, where #339 has been fixed. I'm not sure if it's related to this issue, but it doesn't hurt to try it and see. I tried to reproduce the bug you're describing but was unable to, probably because I can't recreate the same environment. But I do have a few questions that might help us investigate the problem:
|
This is the current code. Its possible to shift-left click the items. Then you receive them in the inventory. This is the only implementation of anvil gui. There is not matter if onClick or onClickAsync. Step by Step list:
onClose is called only once. I use the newest version. new AnvilGUI.Builder()
|
#bump |
I was meaning to take a look at this but got busy, will get back to you when I've tried to reproduce using your instructions, hopefully in a few days. |
@RootException I have now tried to reproduce the issue using your instructions, but was unable to do so (everything worked as expected for me, I was not able to move items to my inventory, even with shift-click). I do have a theory though, which I can't confirm because you haven't shown all of your code (please confirm it or share more code). In your code for the menu that opens AnvilGUI (the chest GUI), you must have a
Also note that the same issue will occur if you open any other inventory from AnvilGUI's
A similar issue to yours (with the same reason: they didn't schedule a task for opening the GUI) has been discussed in #348. So in conclusion, whenever you open an inventory from an inventory event listener, you need to wrap it in a call to |
Its possible to take out the items by clicking on it with an not null item cursor.
interactableSlots() none
Only async click used.
Version 1.20.4
Video of the problem :
20240714-1637-20.4031497.mp4
The text was updated successfully, but these errors were encountered: