Skip to content
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

Bug selector #52

Open
charlyg31 opened this issue Nov 1, 2019 · 3 comments
Open

Bug selector #52

charlyg31 opened this issue Nov 1, 2019 · 3 comments

Comments

@charlyg31
Copy link

Hello, if we manage to throw an object are inventory when we are in the selector (usually those who have a bad connection), we can recover all objects. I join a video link to explain. https://drive.google.com/file/d/1p7D8hiEwkWARUNqHszAti7GFtXgaohbr/view?usp=sharing .

@Arnuh
Copy link
Owner

Arnuh commented Nov 2, 2019

ce3b22d
Arnuh/Robert@35fb672
These commits might fix it?

Idk if its actually just item dropping too? If so that's going to be annoying to check

@charlyg31
Copy link
Author

charlyg31 commented Nov 2, 2019

you could do that if the player removes an item from his inventory, the selector becomes empty?

by dropping the items with the key, it does not make the bug. your plugin prevents items from being dropped. the problem only works if you move the item with the mouse.

after trying the bug is not solved.

You speak French? Sorry for my English !

@charlyg31
Copy link
Author

you add
if (event.isShiftClick() || event.getClick() == ClickType.DOUBLE_CLICK || event.getClick() == ClickType.DROP || event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY)
event.setCancelled(true);

in eventhandler InventoryClickEvent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants