From ec0c667c334d76b5c8dcdad9bf29a016041685da Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Thu, 5 Feb 2026 21:32:59 +0100 Subject: [PATCH] Add System.StringComparer to sandbox Fixes #6081 --- RELEASE-NOTES.md | 2 +- Robust.Shared/ContentPack/Sandbox.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 61f09a18e..f3c0cc0cf 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -40,7 +40,7 @@ END TEMPLATE--> ### New features * If a sandbox error is caused by a compiler-generated method, the engine will now attempt to point out which using code is responsible. -* Added `OrderedDictionary` to the sandbox whitelist. +* Added `OrderedDictionary` and `System.StringComparer` to the sandbox whitelist. ### Bugfixes diff --git a/Robust.Shared/ContentPack/Sandbox.yml b/Robust.Shared/ContentPack/Sandbox.yml index 3ac5f6fe2..a8d500234 100644 --- a/Robust.Shared/ContentPack/Sandbox.yml +++ b/Robust.Shared/ContentPack/Sandbox.yml @@ -1463,6 +1463,7 @@ Types: - "void .ctor(char[], int, int)" - "void .ctor(System.ReadOnlySpan`1)" - "void CopyTo(int, char[], int, int)" + StringComparer: { All: True } StringComparison: { } # Enum StringSplitOptions: { } # Enum TimeOnly: { All: True }