diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 98785c46ea1..96c33a6dbe2 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -39,7 +39,7 @@ END TEMPLATE--> ### New features -*None yet* +* `RequiredMemberAttribute` and `SetsRequiredMembersAttribute` have been added to the sandbox whitelist. I.e., you can now use the `required` keyword in client/shared code. ### Bugfixes diff --git a/Robust.Shared/ContentPack/Sandbox.yml b/Robust.Shared/ContentPack/Sandbox.yml index 37770f25bd5..8916b2db6ab 100644 --- a/Robust.Shared/ContentPack/Sandbox.yml +++ b/Robust.Shared/ContentPack/Sandbox.yml @@ -480,6 +480,7 @@ Types: NotNullAttribute: { All: True } NotNullIfNotNullAttribute: { All: True } NotNullWhenAttribute: { All: True } + SetsRequiredMembersAttribute: { All : True} SuppressMessageAttribute: { All: True } System.Diagnostics: DebuggableAttribute: { All: True } @@ -588,7 +589,6 @@ Types: Vector2: { All: True } Vector3: { All: True } Vector4: { All: True } - Matrix3x2: { All: True } System.Reflection: Assembly: Methods: @@ -653,6 +653,7 @@ Types: NullableContextAttribute: { All: True } PreserveBaseOverridesAttribute: { All: True } RefSafetyRulesAttribute: { All: True } + RequiredMemberAttribute: { All: True } RuntimeCompatibilityAttribute: { All: True } RuntimeHelpers: { All: True } TaskAwaiter: { All: True }