diff --git a/Content.Client/Actions/ActionsSystem.cs b/Content.Client/Actions/ActionsSystem.cs index 8bab98c419..de8376391c 100644 --- a/Content.Client/Actions/ActionsSystem.cs +++ b/Content.Client/Actions/ActionsSystem.cs @@ -174,7 +174,7 @@ namespace Content.Client.Actions LinkAllActions(component); } - private void OnPlayerDetached(EntityUid uid, ActionsComponent component, LocalPlayerDetachedEvent? args = null) + private void OnPlayerDetached(EntityUid uid, ActionsComponent component, LocalPlayerDetachedEvent args) { UnlinkAllActions(); } diff --git a/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs b/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs index d81a5cc373..3a305ae2e6 100644 --- a/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs +++ b/Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs @@ -30,7 +30,7 @@ public sealed partial class ChemistryGuideDataSystem : SharedChemistryGuideDataS SubscribeNetworkEvent(OnReceiveRegistryUpdate); SubscribeLocalEvent(OnPrototypesReloaded); - OnPrototypesReloaded(null); + LoadPrototypes(null); } private void OnReceiveRegistryUpdate(ReagentGuideRegistryChangedEvent message) @@ -47,7 +47,12 @@ public sealed partial class ChemistryGuideDataSystem : SharedChemistryGuideDataS } } - private void OnPrototypesReloaded(PrototypesReloadedEventArgs? ev) + private void OnPrototypesReloaded(PrototypesReloadedEventArgs ev) + { + LoadPrototypes(ev); + } + + private void LoadPrototypes(PrototypesReloadedEventArgs? args) { // this doesn't check what prototypes are being reloaded because, to be frank, we use a lot of them. _reagentSources.Clear(); diff --git a/Content.Client/Light/HandheldLightSystem.cs b/Content.Client/Light/HandheldLightSystem.cs index f5e7209b1b..28fbc77f27 100644 --- a/Content.Client/Light/HandheldLightSystem.cs +++ b/Content.Client/Light/HandheldLightSystem.cs @@ -37,13 +37,8 @@ public sealed partial class HandheldLightSystem : SharedHandheldLightSystem return true; } - private void OnAppearanceChange(EntityUid uid, HandheldLightComponent? component, ref AppearanceChangeEvent args) + private void OnAppearanceChange(EntityUid uid, HandheldLightComponent component, ref AppearanceChangeEvent args) { - if (!Resolve(uid, ref component)) - { - return; - } - if (!_appearance.TryGetData(uid, ToggleableVisuals.Enabled, out var enabled, args.Component)) { return; diff --git a/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs b/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs index 9d2e0db970..b4630ffb9b 100644 --- a/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs +++ b/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs @@ -441,11 +441,8 @@ public abstract partial class SharedCryoPodSystem : EntitySystem } } - protected void OnEmagged(EntityUid uid, CryoPodComponent? cryoPodComponent, ref GotEmaggedEvent args) + protected void OnEmagged(EntityUid uid, CryoPodComponent cryoPodComponent, ref GotEmaggedEvent args) { - if (!Resolve(uid, ref cryoPodComponent)) - return; - if (!_emag.CompareFlag(args.Type, EmagType.Interaction)) return;