-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Fix hardcoded diggingface for cancel digging #3322
Fix hardcoded diggingface for cancel digging #3322
Conversation
IMO MC protocol is absolutely nonsense in some scenarios, many things are hardcoded at the protocol level. Its better to look at the actual packets that the original client sends. In the case of block digging canceling (status 1) the face should always be |
@Vinciepincie did you get a chance to test with the proposed change? I had the same issue and imo this issue should be prioritized |
Yes it seems to works fine now. |
@Vinciepincie so is this ready now? |
@zardoy |
seems valid to me we need a lot more tests for this though |
Previously the packet that cancels the digging was hardcoded to face 1. I don't see a reason why the cancelling face would be different than the digging face.
On a server i noticed the block often doesnt break anymore when breaking something with hand again after cancelling. With this change this issue doesnt seem to happen so it possibly triggered anticheat or some glitch before.