0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00

more logs 2

This commit is contained in:
Sanae 2022-04-26 23:53:03 -06:00
parent 497ebcc06b
commit 5d1b95997c

View file

@ -40,7 +40,7 @@ public class Client : IDisposable {
PacketAttribute packetAttribute = Constants.PacketMap[typeof(T)];
if (packetAttribute.Type is not PacketType.Cap and not PacketType.Player)
Logger.Info($"About to receive {packetAttribute.Type}");
Logger.Info($"About to receive {packetAttribute.Type} -");
PacketHeader header = new PacketHeader {
Id = sender?.Id ?? Id,
Type = packetAttribute.Type,
@ -59,7 +59,7 @@ public class Client : IDisposable {
}
if (packetType is not PacketType.Cap and not PacketType.Player)
Logger.Info($"About to receive {packetType}");
Logger.Info($"About to receive {packetType} +");
int packetSize = MemoryMarshal.Read<short>(data.Span[18..]);
await Socket!.SendAsync(data[..(Constants.HeaderSize + packetSize)], SocketFlags.None);