mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-21 18:55:17 +00:00
getting good
This commit is contained in:
parent
ded197601a
commit
6444675fbb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue