Skip to content

Commit aa5647f

Browse files
committed
minecraft: correct server-list pong field order
1 parent b95936e commit aa5647f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

minecraft/listener.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,9 @@ func (listener *Listener) updatePongData() {
372372
}); ok {
373373
port = a.AddrPort().Port()
374374
}
375-
authOnline, authOffline := "0", "1"
376-
if !listener.cfg.AuthenticationDisabled {
377-
authOnline, authOffline = "1", "0"
378-
}
379-
listener.listener.PongData([]byte(fmt.Sprintf("MCPE;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;",
375+
listener.listener.PongData([]byte(fmt.Sprintf("MCPE;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;%v;",
380376
s.ServerName, protocol.CurrentProtocol, protocol.CurrentVersion, s.PlayerCount, s.MaxPlayers,
381-
listener.listener.ID(), s.ServerSubName, "Creative", 1, "1", port, port, "0", authOnline,
382-
authOffline,
377+
listener.listener.ID(), s.ServerSubName, "Creative", 1, port, port, 0, 0,
383378
)))
384379
}
385380

0 commit comments

Comments
 (0)