Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult committed Feb 10, 2022
1 parent 86d39be commit a04ad2d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Content.Server/Drone/DroneSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

namespace Content.Server.Drone
{
public class DroneSystem : SharedDroneSystem
public sealed class DroneSystem : SharedDroneSystem
{
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly TagSystem _tagSystem = default!;
public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -77,9 +78,8 @@ private void OnDisarmAttempt(EntityUid uid, DroneComponent drone, DisarmAttemptE

private void OnMindAdded(EntityUid uid, DroneComponent drone, MindAddedMessage args)
{
TryComp<TagComponent>(uid, out var tagComp);
UpdateDroneAppearance(uid, DroneStatus.On);
tagComp?.AddTag("DoorBumpOpener");
_tagSystem.AddTag(uid, "DoorBumpOpener");
_popupSystem.PopupEntity(Loc.GetString("drone-activated"), uid, Filter.Pvs(uid));

if (drone.AlreadyAwoken == false)
Expand All @@ -105,9 +105,8 @@ private void OnMindAdded(EntityUid uid, DroneComponent drone, MindAddedMessage a

private void OnMindRemoved(EntityUid uid, DroneComponent drone, MindRemovedMessage args)
{
TryComp<TagComponent>(uid, out var tagComp);
UpdateDroneAppearance(uid, DroneStatus.Off);
tagComp?.RemoveTag("DoorBumpOpener");
_tagSystem.RemoveTag(uid, "DoorBumpOpener");
EnsureComp<GhostTakeoverAvailableComponent>(uid);
}

Expand Down

0 comments on commit a04ad2d

Please sign in to comment.