gophertunnel icon indicating copy to clipboard operation
gophertunnel copied to clipboard

ItemInteractionData's BlockPos in PlayerAuthInput may be incorrectly decoded

Open ethaniccc opened this issue 2 years ago • 1 comments

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

ethaniccc avatar Oct 27 '23 00:10 ethaniccc