Add access to gun components (#30688)

* Add access to gun components

Found from an rmc14 PR.

* Admin verbs proving why access needs to exist

* Someone is probably going to post this pr to le reddit and complain about self-merges.
This commit is contained in:
metalgearsloth
2024-08-09 17:39:27 +10:00
committed by GitHub
parent b8fc879cd7
commit 1649ed45bd
6 changed files with 22 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Shared.GameStates;
using Content.Shared.Weapons.Ranged.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Ranged.Components;
@@ -6,6 +7,7 @@ namespace Content.Shared.Weapons.Ranged.Components;
/// Handles pulling entities from the given container to use as ammunition.
/// </summary>
[RegisterComponent]
[Access(typeof(SharedGunSystem))]
public sealed partial class ContainerAmmoProviderComponent : AmmoProviderComponent
{
[DataField("container", required: true)]