reply handling

master
Alex 2021-12-29 15:05:53 +01:00
parent a9355a82a9
commit eedb04be56
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ func EncodeJavaMessage(status int, cmdID int, dest int, playerUuid string, cmdNu
}
func DecodeWebMessage(data []byte) (Status int, CmdID int, Dest int, CmdNumber int, Args string) {
if data[0] == StatusReply {
return int(data[0]), 0, 0, 0, ""
}
status := data[0]
cmdID := data[1]
dest := data[2]