From 3bd18604a2d22a7df6962adcd20f36ca4b551f96 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Thu, 2 Oct 2025 20:37:04 -0400 Subject: [PATCH] use typename instead of harmonyId for logging --- .../SPTarkov.Reflection/Patching/AbstractPatch.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Libraries/SPTarkov.Reflection/Patching/AbstractPatch.cs b/Libraries/SPTarkov.Reflection/Patching/AbstractPatch.cs index d9a9818b..d5d53dc4 100644 --- a/Libraries/SPTarkov.Reflection/Patching/AbstractPatch.cs +++ b/Libraries/SPTarkov.Reflection/Patching/AbstractPatch.cs @@ -63,7 +63,7 @@ public abstract class AbstractPatch && _ilManipulatorList.Count == 0 ) { - throw new PatchException($"{HarmonyId}: At least one of the patch methods must be specified"); + throw new PatchException($"{GetType().Name}: At least one of the patch methods must be specified"); } } @@ -109,7 +109,7 @@ public abstract class AbstractPatch if (TargetMethod == null) { - throw new PatchException($"{HarmonyId}: TargetMethod is null"); + throw new PatchException($"{GetType().Name}: TargetMethod is null"); } try @@ -146,7 +146,7 @@ public abstract class AbstractPatch } catch (Exception ex) { - throw new Exception($"{HarmonyId}:", ex); + throw new Exception($"{GetType().Name}:", ex); } } @@ -181,7 +181,7 @@ public abstract class AbstractPatch if (target == null) { - throw new PatchException($"{HarmonyId}: TargetMethod is null"); + throw new PatchException($"{GetType().Name}: TargetMethod is null"); } try @@ -191,12 +191,12 @@ public abstract class AbstractPatch } catch (Exception ex) { - throw new PatchException($"{HarmonyId}:", ex); + throw new PatchException($"{GetType().Name}:", ex); } if (!ModPatchCache.RemovePatch(this)) { - throw new PatchException($"{HarmonyId}: Target patch not present in cache, a mod is likely externally altering it."); + throw new PatchException($"{GetType().Name}: Target patch not present in cache, a mod is likely externally altering it."); } IsActive = false;