-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Direct control is triggered if dropping the pilot tool is cancelled #660
Comments
Appears as if this is a spigot/paper bug, unrelated to movecraft. Closing the issue. |
This can be solved with PlayerDropItemEvent, Here's another video of the issue: 2024-09-05.17-55-23.mp4As you can see, it does not trigger when looking at a block, but triggers when dropping the item facing air |
This cannot be fixed in any vanilla server software, no matter if you are running paper, bukkit, let me explain why, When dropping an item A and B are sent So the only way to check if the client player is hitting something is check packet B, which also is used when dropping item, and oacket B doesn't have information about the cause of the "hit" animation. Hence this is not fixable by us, by paper, by spigot, by bukkit. Maybe with a modded client implementing your own event & packet, but it is more pain than it is worth |
Interestingly enough, the "hit"/PlayerInteractEvent (Packet B) packet does NOT trigger if the player is looking at a block and dropping! a fix can be implemented using packets or placing an invisible block in front of the player (if facing air), I have this in my own plugin, but I figured it may be useful to have in the main plugin hence the request!~ |
hahahah gaslighting the client that sounds cool, why don't you PR the fix then? or is it another plugin that fixes said issue in such a way? |
Because I'm not sure if my fix is good enough xD It's a fix in my own plugin that listens to the pilot tool drop & places a barrier (then removes it quickly), but I bet talented dev could do this via packets, removing the issue somehow without the chance to place permanent barrier blocks, as I have no experience with packets |
Describe the bug
Direct control is triggered if pilot tool drop event is cancelled
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should not enter direct control.
Screenshots
See attached video for this issue.
Versions (please complete the following information):
Additional context
2024-06-23.23-03-28.mp4
The text was updated successfully, but these errors were encountered: