diff --git a/Shared/Packet/Packets/ConnectPacket.cs b/Shared/Packet/Packets/ConnectPacket.cs index 81e29a7..fd4dcf1 100644 --- a/Shared/Packet/Packets/ConnectPacket.cs +++ b/Shared/Packet/Packets/ConnectPacket.cs @@ -21,7 +21,7 @@ public struct ConnectPacket : IPacket { public void Deserialize(ReadOnlySpan data) { ConnectionType = MemoryMarshal.Read(data); - ConnectionType = MemoryMarshal.Read(data[4..]); + MaxPlayers = MemoryMarshal.Read(data[4..]); ClientName = Encoding.UTF8.GetString(data[6..(6 + Constants.CostumeNameSize)]).TrimNullTerm(); }