summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-07-13 09:14:07 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-07-13 09:14:07 -0400
commit8df578edb6d135796a48b219ecc7a7291c7ef460 (patch)
tree3b52286c16465a10722399350e9e3dc1a2bc0a73 /src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs
parentbd20c2e1375ed5e32315ef5e292802bccc42f530 (diff)
downloadSMAPI-8df578edb6d135796a48b219ecc7a7291c7ef460.tar.gz
SMAPI-8df578edb6d135796a48b219ecc7a7291c7ef460.tar.bz2
SMAPI-8df578edb6d135796a48b219ecc7a7291c7ef460.zip
migrate to Harmony 2.1 (#711)
Diffstat (limited to 'src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs')
-rw-r--r--src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs b/src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs
index 72863d17..390aa778 100644
--- a/src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs
+++ b/src/SMAPI.Mods.ErrorHandler/Patches/EventPatches.cs
@@ -1,10 +1,6 @@
using System;
using System.Diagnostics.CodeAnalysis;
-#if HARMONY_2
using HarmonyLib;
-#else
-using Harmony;
-#endif
using StardewModdingAPI.Framework.Patching;
using StardewValley;
@@ -34,11 +30,7 @@ namespace StardewModdingAPI.Mods.ErrorHandler.Patches
}
/// <inheritdoc />
-#if HARMONY_2
public void Apply(Harmony harmony)
-#else
- public void Apply(HarmonyInstance harmony)
-#endif
{
harmony.Patch(
original: AccessTools.Method(typeof(Event), nameof(Event.LogErrorAndHalt)),