Skip to content

Commit

Permalink
Fix sandbox error with new HWID code. (#33461)
Browse files Browse the repository at this point in the history
Oops
  • Loading branch information
PJB3005 authored and deltanedas committed Nov 25, 2024
1 parent fb9d1b1 commit 8b931f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Shared.Database/TypedHwid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public static bool TryParse(string value, [NotNullWhen(true)] out ImmutableTyped
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;
}

Expand Down

0 comments on commit 8b931f8

Please sign in to comment.