From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 28 Aug 2024 02:47:12 +0000 (+1000) Subject: AI whitelist fix (#31542) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5261f01f2559790e0dd3871cf6b8b7cb1ae7d1db;p=space-station-14.git AI whitelist fix (#31542) --- diff --git a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs index 348b0b0465..17c592879c 100644 --- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs +++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs @@ -135,6 +135,9 @@ public abstract partial class SharedStationAiSystem : EntitySystem private void OnAiBuiCheck(Entity ent, ref BoundUserInterfaceCheckRangeEvent args) { + if (!HasComp(args.Actor)) + return; + args.Result = BoundUserInterfaceRangeResult.Fail; // Similar to the inrange check but more optimised so server doesn't die.