0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +00:00

getting good

This commit is contained in:
Sanae 2022-04-26 23:26:35 -06:00
parent ded197601a
commit 6444675fbb

View file

@ -21,7 +21,7 @@ public struct ConnectPacket : IPacket {
public void Deserialize(ReadOnlySpan<byte> data) {
ConnectionType = MemoryMarshal.Read<ConnectionTypes>(data);
MaxPlayers = MemoryMarshal.Read<ConnectionTypes>(data[4..]);
MaxPlayers = MemoryMarshal.Read<ushort>(data[4..]);
ClientName = Encoding.UTF8.GetString(data[6..(6 + Constants.CostumeNameSize)]).TrimNullTerm();
}