diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-20 23:22:24 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-20 23:22:24 -0500 |
commit | 342fc80394ac2d1bd67fb1b745b8ddec927fac49 (patch) | |
tree | 8bfc33ebe6b0556a27eca0f16045e9a48fa67c99 /src/SMAPI/Framework/Serialization | |
parent | 49666ac5bcfc0ffb2b8e2b8f2a274f90b67232d2 (diff) | |
download | SMAPI-342fc80394ac2d1bd67fb1b745b8ddec927fac49.tar.gz SMAPI-342fc80394ac2d1bd67fb1b745b8ddec927fac49.tar.bz2 SMAPI-342fc80394ac2d1bd67fb1b745b8ddec927fac49.zip |
rewrite C# 9 code not supported in Linux build tools yet
Diffstat (limited to 'src/SMAPI/Framework/Serialization')
-rw-r--r-- | src/SMAPI/Framework/Serialization/KeybindConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Serialization/KeybindConverter.cs b/src/SMAPI/Framework/Serialization/KeybindConverter.cs index 7c5db3ad..93a274a8 100644 --- a/src/SMAPI/Framework/Serialization/KeybindConverter.cs +++ b/src/SMAPI/Framework/Serialization/KeybindConverter.cs @@ -44,7 +44,7 @@ namespace StardewModdingAPI.Framework.Serialization { case JsonToken.Null: return objectType == typeof(Keybind) - ? new Keybind() + ? (object)new Keybind() : new KeybindList(); case JsonToken.String: |