summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-09 14:30:40 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-10-09 14:30:40 -0400
commit8dc12fd01c9274b045bafb04f02ef97fd8999c5d (patch)
treeab76933c2adab32d124b20cd81639ed212f3f625 /src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player
parent3d10d08a1ac281620b60c0e5fd1d51b2da896a0d (diff)
downloadSMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.gz
SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.bz2
SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.zip
optimize string splits
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetColorCommand.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetColorCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetColorCommand.cs
index 12a51bc9..ea9f1d82 100644
--- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetColorCommand.cs
+++ b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetColorCommand.cs
@@ -63,7 +63,7 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.Player
/// <param name="color">The color to set.</param>
private bool TryParseColor(string input, out Color color)
{
- string[] colorHexes = input.Split(new[] { ',' }, 3);
+ string[] colorHexes = input.Split(',', 3);
if (int.TryParse(colorHexes[0], out int r) && int.TryParse(colorHexes[1], out int g) && int.TryParse(colorHexes[2], out int b))
{
color = new Color(r, g, b);