mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Don't crash if server doesn't send MOTD packet (Thanks ksft)
This commit is contained in:
parent
fe0facc741
commit
f73f7fe86e
@ -24,6 +24,7 @@ namespace ClassicalSharp.Network.Protocols {
|
||||
}
|
||||
|
||||
internal void CheckMotd() {
|
||||
if (net.ServerMotd == null) return;
|
||||
int index = net.ServerMotd.IndexOf("cfg=");
|
||||
if (game.PureClassic || index == -1) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user