0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-25 04:35:18 +00:00
This commit is contained in:
Sanae 2022-03-15 01:31:24 -06:00
parent e64c922966
commit 3a8b38142e

View file

@ -40,7 +40,7 @@ public class Client : IDisposable {
IMemoryOwner<byte> memory = MemoryPool<byte>.Shared.RentZero(Constants.HeaderSize + packet.Size);
packet = (T) (PacketTransformer?.Invoke(sender, packet) ?? packet);
PacketHeader header = new PacketHeader {
Id = sender?.Id ?? Guid.Empty,
Id = sender?.Id ?? Id,
Type = Constants.PacketMap[typeof(T)].Type,
PacketSize = packet.Size
};