Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MCausc78 committed Sep 5, 2023
1 parent 469f33d commit bf1ee76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewRCONClient(host string, port uint16) *RCONClient {
func (client *RCONClient) SendPacket(packet Packet) error {
payload := []byte(packet.Data)
payloadLength := len(payload)
data := make([]byte, 14+payloadLength)
data := make([]byte, 15+payloadLength)
MCEndian.PutUint32(data, uint32(10+payloadLength))
MCEndian.PutUint32(data[4:], uint32(packet.RequestID))
MCEndian.PutUint32(data[8:], uint32(packet.Type))
Expand Down

0 comments on commit bf1ee76

Please sign in to comment.