Sandertv / gophertunnel

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

Fix PlayerDiedEventData #148

Closed egor-erm closed 2 years ago

egor-erm commented 2 years ago

I use gophertunnel as a proxy server. When a player dies, an error message arrives (*packet.Event: 2 unread bytes left: 0x0a00). I found a mismatch of PlayerDiedEventData with the original protocol. After the correction, no errors occur.

https://github.com/CloudburstMC/Protocol/blob/f92336f2433875a1116c103dc0100b92cd260e2b/bedrock/bedrock-common/src/main/java/com/nukkitx/protocol/bedrock/data/event/PlayerDiedEventData.java