From e4d6f153450b00d71e5997c167e8147c1cf214ee Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Wed, 8 Nov 2023 19:48:58 +0100 Subject: [PATCH] fix: Packets not found --- Server/Services/PacketDistributorService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 => {