Revert "Revert "Fix some friend access violations by allowing others access. (#8594) (#8703)" (working this time) (#8704)
This commit is contained in:
committed by
GitHub
parent
cecf87997b
commit
a323ba8223
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.Fluids.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SpraySystem))]
|
||||
[Access(typeof(SpraySystem))]
|
||||
public sealed class SprayComponent : Component
|
||||
{
|
||||
public const string SolutionName = "spray";
|
||||
@@ -32,5 +32,6 @@ public sealed class SprayComponent : Component
|
||||
[DataField("impulse")] public float Impulse;
|
||||
|
||||
[DataField("spraySound", required: true)]
|
||||
[Access(typeof(SpraySystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public SoundSpecifier SpraySound { get; } = default!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user