Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -8,7 +8,6 @@ using Content.Shared.Interaction;
|
||||
using Content.Shared.Mobs.Components;
|
||||
using Content.Shared.Popups;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.Implants;
|
||||
|
||||
@@ -24,7 +23,6 @@ public sealed partial class ImplanterSystem : SharedImplanterSystem
|
||||
InitializeImplanted();
|
||||
|
||||
SubscribeLocalEvent<ImplanterComponent, AfterInteractEvent>(OnImplanterAfterInteract);
|
||||
SubscribeLocalEvent<ImplanterComponent, ComponentGetState>(OnImplanterGetState);
|
||||
|
||||
SubscribeLocalEvent<ImplanterComponent, ImplantEvent>(OnImplant);
|
||||
SubscribeLocalEvent<ImplanterComponent, DrawEvent>(OnDraw);
|
||||
@@ -109,11 +107,6 @@ public sealed partial class ImplanterSystem : SharedImplanterSystem
|
||||
|
||||
}
|
||||
|
||||
private void OnImplanterGetState(EntityUid uid, ImplanterComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new ImplanterComponentState(component.CurrentMode, component.ImplantOnly);
|
||||
}
|
||||
|
||||
private void OnImplant(EntityUid uid, ImplanterComponent component, ImplantEvent args)
|
||||
{
|
||||
if (args.Cancelled || args.Handled || args.Target == null || args.Used == null)
|
||||
|
||||
Reference in New Issue
Block a user