diff --git a/Server/Services/PacketDistributorService.cs b/Server/Services/PacketDistributorService.cs index 79f9c34..1c53f8c 100644 --- a/Server/Services/PacketDistributorService.cs +++ b/Server/Services/PacketDistributorService.cs @@ -36,9 +36,9 @@ public class PacketDistributorService : IHostedService var tempDeserializationMap = new Dictionary>(); - var executingAssembly = Assembly.GetExecutingAssembly(); - var packetsTypes = this.GetPacketsWithId(executingAssembly); - var packetHandlers = this.GetAllPacketHandlersWithId(executingAssembly); + var wonderkingAssembly = Assembly.GetAssembly(typeof(IPacket)); + var packetsTypes = this.GetPacketsWithId(wonderkingAssembly); + var packetHandlers = this.GetAllPacketHandlersWithId(Assembly.GetExecutingAssembly()); this._packetHandlersInstantiation = new ConcurrentDictionary(); packetHandlers.ForEach(x => {