From b4ec946bd9f5af7bbc27dd676f294c0c5f4c6847 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 22 Nov 2024 18:14:46 +0100 Subject: [PATCH] Fix sandbox error with new HWID code. (#33461) Oops --- Content.Shared.Database/TypedHwid.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared.Database/TypedHwid.cs b/Content.Shared.Database/TypedHwid.cs index 6e4a7763b3..253375e9db 100644 --- a/Content.Shared.Database/TypedHwid.cs +++ b/Content.Shared.Database/TypedHwid.cs @@ -34,7 +34,9 @@ public sealed class ImmutableTypedHwid(ImmutableArray hwid, HwidType type) return false; } - hwid = new ImmutableTypedHwid([..array], type); + // ReSharper disable once UseCollectionExpression + // Do not use collection expression, C# compiler is weird and it fails sandbox. + hwid = new ImmutableTypedHwid(ImmutableArray.Create(array), type); return true; }