diff --git a/Server/Services/PacketDistributorService.cs b/Server/Services/PacketDistributorService.cs index 1c53f8c..5bc2d43 100644 --- a/Server/Services/PacketDistributorService.cs +++ b/Server/Services/PacketDistributorService.cs @@ -76,6 +76,7 @@ public class PacketDistributorService : IHostedService // ! : We are filtering if types that don't have an instance of the required Attribute var packetsWithId = executingAssembly.GetTypes().AsParallel() .Where(type => type.HasInterface(typeof(IPacket)) && type is { IsInterface: false, IsAbstract: false }) + .Where(type => type.Namespace?.Contains("Incoming") ?? false) .Select(type => new { Type = type, Attribute = type.GetCustomAttribute() }) .Where(item => item.Attribute is not null) .ToDictionary(item => item.Attribute!.Code, item => item.Type);