Sandertv / gophertunnel

General purpose library for Minecraft Bedrock Edition software written in Go
MIT License
411 stars 93 forks source link

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

Open ethaniccc opened 8 months ago

ethaniccc commented 8 months ago

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