Skip to content

Commit

Permalink
v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MCausc78 committed Oct 3, 2023
1 parent fd35572 commit 098d6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ReadBinaryPacket(r io.Reader) (*BinaryPacket, error) {
return &BinaryPacket{
RequestID: int32(MCEndian.Uint32(data)),
Type: PacketType(MCEndian.Uint32(data[4:])),
Body: data[:len(data)-2],
Body: data[8 : len(data)-1],
}, nil
}

Expand Down

0 comments on commit 098d6ba

Please sign in to comment.