This commit is contained in:
Ed
2025-06-10 11:55:14 +03:00
parent c0f4098ca9
commit 299d28f056
2 changed files with 3 additions and 3 deletions

View File

@@ -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<CP14SpellStorageComponent> 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;
}
}

View File

@@ -21,7 +21,7 @@ public abstract class CP14SharedNightVisionSystem : EntitySystem
protected virtual void OnRemove(Entity<CP14NightVisionComponent> ent, ref ComponentRemove args)
{
_actions.RemoveAction(ent, ent.Comp.ActionEntity);
_actions.RemoveAction(ent.Owner, ent.Comp.ActionEntity);
}
}