mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -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() {
|
internal void CheckMotd() {
|
||||||
|
if (net.ServerMotd == null) return;
|
||||||
int index = net.ServerMotd.IndexOf("cfg=");
|
int index = net.ServerMotd.IndexOf("cfg=");
|
||||||
if (game.PureClassic || index == -1) return;
|
if (game.PureClassic || index == -1) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user