Skip to content

Commit

Permalink
Fix sandbox error
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril authored and sleepyyapril committed Nov 24, 2024
1 parent 9ae7874 commit 299b699
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 299b699

Please sign in to comment.