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 64237b3 commit 9dc8758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gorcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func NewRCONClient(host string, port uint16) *RCONClient {
func (client *RCONClient) SendPacket(packet Packet) error {
payload := []byte(packet.Data)
payloadLength := len(payload)
data := make([]byte, 16+payloadLength)
MCEndian.PutUint32(data, uint32(10+payloadLength))
data := make([]byte, 15+payloadLength)
MCEndian.PutUint32(data, uint32(11+payloadLength))
MCEndian.PutUint32(data[4:], uint32(packet.RequestID))
MCEndian.PutUint32(data[8:], uint32(packet.Type))
copy(data[12:], payload)
Expand Down

0 comments on commit 9dc8758

Please sign in to comment.