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