From 299d28f0564b366933b6088a6a59f302440e8723 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:55:14 +0300 Subject: [PATCH] fff --- .../_CP14/MagicSpellStorage/CP14SpellStorageSystem.cs | 4 ++-- .../_CP14/NightVision/CP14SharedNightVisionSystem.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Shared/_CP14/MagicSpellStorage/CP14SpellStorageSystem.cs b/Content.Shared/_CP14/MagicSpellStorage/CP14SpellStorageSystem.cs index 0ec0595de2..d9b5709278 100644 --- a/Content.Shared/_CP14/MagicSpellStorage/CP14SpellStorageSystem.cs +++ b/Content.Shared/_CP14/MagicSpellStorage/CP14SpellStorageSystem.cs @@ -56,7 +56,7 @@ public sealed partial class CP14SpellStorageSystem : EntitySystem storage.Comp.SpellEntities.Add(spellEnt.Value); } if (storage.Comp.GrantAccessToSelf) - _actions.GrantActions(storage, storage.Comp.SpellEntities, storage); + _actions.GrantActions(storage.Owner, storage.Comp.SpellEntities, storage.Owner); } private void OnMagicStorageShutdown(Entity mStorage, ref ComponentShutdown args) @@ -78,7 +78,7 @@ public sealed partial class CP14SpellStorageSystem : EntitySystem if (mind.OwnedEntity is null) return false; - _actions.GrantActions(user, storage.Comp.SpellEntities, storage); + _actions.GrantActions(user, storage.Comp.SpellEntities, storage.Owner); return true; } } diff --git a/Content.Shared/_CP14/NightVision/CP14SharedNightVisionSystem.cs b/Content.Shared/_CP14/NightVision/CP14SharedNightVisionSystem.cs index 439367fab3..34ae16191c 100644 --- a/Content.Shared/_CP14/NightVision/CP14SharedNightVisionSystem.cs +++ b/Content.Shared/_CP14/NightVision/CP14SharedNightVisionSystem.cs @@ -21,7 +21,7 @@ public abstract class CP14SharedNightVisionSystem : EntitySystem protected virtual void OnRemove(Entity ent, ref ComponentRemove args) { - _actions.RemoveAction(ent, ent.Comp.ActionEntity); + _actions.RemoveAction(ent.Owner, ent.Comp.ActionEntity); } }