0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00
This commit is contained in:
Sanae 2022-04-26 23:26:03 -06:00
parent 6964c3bbf4
commit ded197601a

View file

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