Allow interaction if targeting the containing entity
This commit is contained in:
@@ -263,7 +263,8 @@ namespace Content.Server.GameObjects.EntitySystems.Click
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ActionBlockerSystem.CanInteract(player) ||
|
if (!ActionBlockerSystem.CanInteract(player) ||
|
||||||
ContainerHelpers.IsInContainer(player))
|
ContainerHelpers.TryGetContainer(player, out var container) &&
|
||||||
|
container.Owner != attacked)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user