summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ErrorHandler/ModEntry.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Mods.ErrorHandler/ModEntry.cs')
-rw-r--r--src/SMAPI.Mods.ErrorHandler/ModEntry.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/SMAPI.Mods.ErrorHandler/ModEntry.cs b/src/SMAPI.Mods.ErrorHandler/ModEntry.cs
index 22e68421..25056b5e 100644
--- a/src/SMAPI.Mods.ErrorHandler/ModEntry.cs
+++ b/src/SMAPI.Mods.ErrorHandler/ModEntry.cs
@@ -2,7 +2,9 @@ using System;
using System.Reflection;
using StardewModdingAPI.Events;
using StardewModdingAPI.Internal.Patching;
+#if SMAPI_DEPRECATED
using StardewModdingAPI.Mods.ErrorHandler.ModPatches;
+#endif
using StardewModdingAPI.Mods.ErrorHandler.Patches;
using StardewValley;
@@ -39,10 +41,12 @@ namespace StardewModdingAPI.Mods.ErrorHandler
new ObjectPatcher(),
new SaveGamePatcher(this.Monitor, this.OnSaveContentRemoved),
new SpriteBatchPatcher(),
- new UtilityPatcher(),
+ new UtilityPatcher()
+#if SMAPI_DEPRECATED
// mod patches
- new PyTkPatcher(helper.ModRegistry)
+ , new PyTkPatcher(helper.ModRegistry)
+#endif
);
// hook events