Drone Interaction Checks & Cleanup (#6731)

This commit is contained in:
Rane
2022-02-18 17:57:31 -05:00
committed by GitHub
parent 9f439f1d36
commit 67661ddbdb
7 changed files with 51 additions and 32 deletions

View File

@@ -1,6 +1,4 @@
using Robust.Shared.Serialization;
using Robust.Shared.Containers;
using Content.Shared.Drone.Components;
namespace Content.Shared.Drone
{
@@ -9,15 +7,8 @@ namespace Content.Shared.Drone
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<DroneToolComponent, ContainerGettingRemovedAttemptEvent>(OnRemoveAttempt);
}
private void OnRemoveAttempt(EntityUid uid, DroneToolComponent tool, ContainerGettingRemovedAttemptEvent args)
{
args.Cancel();
}
[Serializable, NetSerializable]
public enum DroneVisuals : byte
{