mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-21 18:55:17 +00:00
oops
This commit is contained in:
parent
6964c3bbf4
commit
ded197601a
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);
|
||||
ConnectionType = MemoryMarshal.Read<ConnectionTypes>(data[4..]);
|
||||
MaxPlayers = MemoryMarshal.Read<ConnectionTypes>(data[4..]);
|
||||
ClientName = Encoding.UTF8.GetString(data[6..(6 + Constants.CostumeNameSize)]).TrimNullTerm();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue