Remove ignore-inside-blocker (#6692)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Server.CombatMode;
|
||||
using Content.Server.Interaction;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Helpers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
@@ -34,7 +35,9 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
return Outcome.Failed;
|
||||
}
|
||||
|
||||
if (!_owner.InRangeUnobstructed(_useTarget, popup: true))
|
||||
var interactionSystem = EntitySystem.Get<InteractionSystem>();
|
||||
|
||||
if (!interactionSystem.InRangeUnobstructed(_owner, _useTarget, popup: true))
|
||||
{
|
||||
return Outcome.Failed;
|
||||
}
|
||||
@@ -45,7 +48,6 @@ namespace Content.Server.AI.Operators.Inventory
|
||||
}
|
||||
|
||||
// Click on da thing
|
||||
var interactionSystem = EntitySystem.Get<InteractionSystem>();
|
||||
interactionSystem.AiUseInteraction(_owner, targetTransform.Coordinates, _useTarget);
|
||||
|
||||
return Outcome.Success;
|
||||
|
||||
Reference in New Issue
Block a user