summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-08-29 18:00:41 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-08-29 18:00:41 -0400
commit2bb8e8353ba35c2db96f88a052400997232d25f8 (patch)
tree41e1c9ffd71d4a1889ce1a426179872eea03501b /src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs
parentc2f474bf88a43e293d28851785a57a9ca1e60f2e (diff)
downloadSMAPI-2bb8e8353ba35c2db96f88a052400997232d25f8.tar.gz
SMAPI-2bb8e8353ba35c2db96f88a052400997232d25f8.tar.bz2
SMAPI-2bb8e8353ba35c2db96f88a052400997232d25f8.zip
update compatibility workaround for the recent PyTK update
Diffstat (limited to 'src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs')
-rw-r--r--src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs b/src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs
index 9ee864db..83cd42b9 100644
--- a/src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs
+++ b/src/SMAPI.Mods.ErrorHandler/ModPatches/PyTkPatcher.cs
@@ -10,7 +10,7 @@ using StardewModdingAPI.Internal;
using StardewModdingAPI.Internal.Patching;
//
-// This is part of a three-part fix for PyTK 1.23.0 and earlier. When removing this, search
+// This is part of a three-part fix for PyTK 1.23.* and earlier. When removing this, search
// 'Platonymous.Toolkit' to find the other part in SMAPI and Content Patcher.
//
@@ -38,7 +38,7 @@ namespace StardewModdingAPI.Mods.ErrorHandler.ModPatches
public PyTkPatcher(IModRegistry modRegistry)
{
IModMetadata? pyTk = (IModMetadata?)modRegistry.Get(@"Platonymous.Toolkit");
- if (pyTk is not null && !pyTk.Manifest.Version.IsNewerThan("1.23.0"))
+ if (pyTk is not null && pyTk.Manifest.Version.IsOlderThan("1.24.0"))
PyTkPatcher.PyTk = pyTk;
}