]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix mind role filter (#39499)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Sat, 9 Aug 2025 16:23:31 +0000 (16:23 +0000)
committerGitHub <noreply@github.com>
Sat, 9 Aug 2025 16:23:31 +0000 (18:23 +0200)
Content.Shared/Mind/Filters/HasRoleMindFilter.cs

index 22f250dd294e69143cb1174fddd0c3dca9cc4a3e..e8098d72a24fbd29e99f3952683ec00a738a58cb 100644 (file)
@@ -17,6 +17,6 @@ public sealed partial class HasRoleMindFilter : MindFilter
     protected override bool ShouldRemove(Entity<MindComponent> mind, EntityUid? exclude, IEntityManager entMan, SharedMindSystem mindSys)
     {
         var roleSys = entMan.System<SharedRoleSystem>();
-        return roleSys.MindHasRole(mind, Whitelist);
+        return !roleSys.MindHasRole(mind, Whitelist);
     }
 }