mirror of
https://github.com/MeowLynxSea/pocketmine-rcon.git
synced 2025-07-09 10:54:39 +00:00
Update connection.go
Fixed the bug of being unable to correctly parse the packets
This commit is contained in:
parent
03454839a2
commit
f2ffbdf68b
@ -93,7 +93,7 @@ func (c *Connection) readPkg() (pkg, error) {
|
||||
if rdr.err != nil {
|
||||
return p, rdr.err
|
||||
}
|
||||
p.Body = body[:read-12]
|
||||
p.Body = body[:read-14]
|
||||
return p, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user