summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Serialization/PointConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Serialization/PointConverter.cs')
-rw-r--r--src/SMAPI/Framework/Serialization/PointConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Serialization/PointConverter.cs b/src/SMAPI/Framework/Serialization/PointConverter.cs
index 3481c9b2..6cf795dc 100644
--- a/src/SMAPI/Framework/Serialization/PointConverter.cs
+++ b/src/SMAPI/Framework/Serialization/PointConverter.cs
@@ -33,7 +33,7 @@ namespace StardewModdingAPI.Framework.Serialization
{
string[] parts = str.Split(',');
if (parts.Length != 2)
- throw new SParseException($"Can't parse {typeof(Point).Name} from invalid value '{str}' (path: {path}).");
+ throw new SParseException($"Can't parse {nameof(Point)} from invalid value '{str}' (path: {path}).");
int x = Convert.ToInt32(parts[0]);
int y = Convert.ToInt32(parts[1]);