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-02-14 16:06:49 -06:00
parent d0f060fab5
commit d004df2f4a

View file

@ -161,7 +161,7 @@ public class Server {
ConnectPacket connectPacket = new ConnectPacket {
ConnectionType = ConnectionTypes.FirstConnection // doesn't matter what it is :)
};
MemoryMarshal.Write(tempBuffer.Memory.Span[Constants.HeaderSize..], ref connectPacket);
connectPacket.Serialize(tempBuffer.Memory.Span[Constants.HeaderSize..]);
await client.Send(tempBuffer.Memory, null);
if (other.CurrentCostume.HasValue) {
connectHeader.Type = PacketType.Costume;