Some Cleanups

This commit is contained in:
hondacrx
2021-06-07 18:06:16 -04:00
parent cb7640e3c6
commit 302a1f293c
53 changed files with 382 additions and 477 deletions
+4 -6
View File
@@ -133,12 +133,10 @@ namespace Game.Networking
if (packetType == null)
return;
using (var clientPacket = (ClientPacket)Activator.CreateInstance(packetType, packet))
{
clientPacket.Read();
clientPacket.LogPacket(session);
methodCaller(session, clientPacket);
}
using var clientPacket = (ClientPacket)Activator.CreateInstance(packetType, packet);
clientPacket.Read();
clientPacket.LogPacket(session);
methodCaller(session, clientPacket);
}
static Action<WorldSession, ClientPacket> CreateDelegate<P1>(MethodInfo method) where P1 : ClientPacket