Fix some friend access violations by allowing others access. (#8594)
Rename Friend attribute to Access attribute. Updates submodule to v0.21.0.0 as well.
This commit is contained in:
committed by
GitHub
parent
379555e933
commit
c5f7c61041
@@ -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