Skip to content

Commit

Permalink
OnUIOpenAttempt!
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Dec 26, 2024
1 parent e398c9c commit 754275e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Content.Shared/Silicons/Borgs/SharedBorgSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Content.Shared.Popups;
using Content.Shared.PowerCell.Components;
using Content.Shared.Silicons.Borgs.Components;
using Content.Shared.UserInterface;
using Content.Shared.Wires;
using Robust.Shared.Containers;

Expand Down Expand Up @@ -95,6 +96,13 @@ private void OnStartup(EntityUid uid, BorgChassisComponent component, ComponentS
component.ModuleContainer = Container.EnsureContainer<Container>(uid, component.ModuleContainerId, containerManager);
}

private void OnUIOpenAttempt(EntityUid uid, BorgChassisComponent component, ActivatableUIOpenAttemptEvent args)
{
// borgs can't view their own ui
if (args.User == uid)
args.Cancel();
}

protected virtual void OnInserted(EntityUid uid, BorgChassisComponent component, EntInsertedIntoContainerMessage args)
{

Expand Down

0 comments on commit 754275e

Please sign in to comment.