@@ -352,6 +352,13 @@ namespace Content.Server.GameObjects.EntitySystems.Click
|
||||
return;
|
||||
}
|
||||
|
||||
// If in a container
|
||||
if (ContainerHelpers.IsInContainer(player))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// In a container where the attacked entity is not the container's owner
|
||||
if (ContainerHelpers.TryGetContainer(player, out var playerContainer) &&
|
||||
attacked != playerContainer.Owner)
|
||||
|
||||
Reference in New Issue
Block a user