summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
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/Framework/SCore.cs
parent3d10d08a1ac281620b60c0e5fd1d51b2da896a0d (diff)
downloadSMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.gz
SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.bz2
SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.zip
optimize string splits
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r--src/SMAPI/Framework/SCore.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 98eb2803..114c4bb3 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -1384,7 +1384,7 @@ namespace StardewModdingAPI.Framework
}
// check min length for specific types
- switch (fields[SObject.objectInfoTypeIndex].Split(new[] { ' ' }, 2)[0])
+ switch (fields[SObject.objectInfoTypeIndex].Split(' ', 2)[0])
{
case "Cooking":
if (fields.Length < SObject.objectInfoBuffDurationIndex + 1)