prevent using holo inside containers (#32068)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -80,6 +80,12 @@ namespace Content.Server.Guardian
|
||||
if (args.Handled)
|
||||
return;
|
||||
|
||||
if (_container.IsEntityInContainer(uid))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("guardian-inside-container"), uid, uid);
|
||||
return;
|
||||
}
|
||||
|
||||
if (component.HostedGuardian != null)
|
||||
ToggleGuardian(uid, component);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user