AI whitelist fix (#31542)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user