AI whitelist fix (#31542)

This commit is contained in:
metalgearsloth
2024-08-28 12:47:12 +10:00
committed by GitHub
parent 99a41a12ab
commit 5261f01f25

View File

@@ -135,6 +135,9 @@ public abstract partial class SharedStationAiSystem : EntitySystem
private void OnAiBuiCheck(Entity<StationAiWhitelistComponent> ent, ref BoundUserInterfaceCheckRangeEvent args)
{
if (!HasComp<StationAiHeldComponent>(args.Actor))
return;
args.Result = BoundUserInterfaceRangeResult.Fail;
// Similar to the inrange check but more optimised so server doesn't die.