Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix potential error with AOT for Enum.GetValues
  • Loading branch information
ButterscotchV committed Jan 1, 2023
commit fbd8e70de8b618a6a67a373a0df290c18d006e04
2 changes: 1 addition & 1 deletion MultiAdmin/ServerIO/InputHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public static void RandomizeInputColors()
try
{
Random random = new();
Array colors = Enum.GetValues(typeof(ConsoleColor));
Array colors = Enum.GetValues<ConsoleColor>();

ConsoleColor random1 = (ConsoleColor)colors.GetValue(random.Next(colors.Length));
ConsoleColor random2 = (ConsoleColor)colors.GetValue(random.Next(colors.Length));
Expand Down