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

ItemInteractionData's BlockPos in PlayerAuthInput may be incorrectly decoded #209

Open
ethaniccc opened this issue Oct 27, 2023 · 0 comments

Comments

@ethaniccc
Copy link

ethaniccc commented Oct 27, 2023

The block position in the ItemInteractionData of PlayerAuthInput may be incorrectly decoded.

To see results, use the following code while handling PlayerAuthInput:

if utils.HasFlag(pk.InputData, packet.InputFlagPerformItemInteraction) {
	fmt.Println((fmt.Sprintf("broke block at %v", pk.ItemInteractionData.BlockPosition))
}

Video w/ reproduction: https://streamable.com/fd6alt

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

1 participant