From 82f3db65ff5aa16656dafafbda1468b00104223c Mon Sep 17 00:00:00 2001 From: Aragas Date: Fri, 14 Jan 2022 17:37:24 +0300 Subject: [PATCH] Variable fix, new release --- build/common.props | 2 +- changelog.txt | 4 ++++ .../SaveSystem/Patches/BehaviourNamePatch.cs | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/common.props b/build/common.props index 2621c8c4..37be4a7e 100644 --- a/build/common.props +++ b/build/common.props @@ -4,7 +4,7 @@ - 1.0.32 + 1.0.33 2.1.1 diff --git a/changelog.txt b/changelog.txt index 1dd0b5a9..64ae2d34 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,8 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.33 +Game Versions: e1.4.3,e1.5.0,e1.5.1,e1.5.2,e1.5.3,e1.5.4,e1.5.5,e1.5.6,e1.5.7,e1.5.8,e1.5.9,e1.5.10,e1.6.0,e1.6.1,e1.6.2,e1.6.3,e1.6.4,e1.6.5,e1.7.0,e1.7.1 +* Fixed TW save changes for the modding community. +--------------------------------------------------------------------------------------------------- Version: 1.0.32 Game Versions: e1.4.3,e1.5.0,e1.5.1,e1.5.2,e1.5.3,e1.5.4,e1.5.5,e1.5.6,e1.5.7,e1.5.8,e1.5.9,e1.5.10,e1.6.0,e1.6.1,e1.6.2,e1.6.3,e1.6.4,e1.6.5,e1.7.0,e1.7.1 * Fixed TW save changes for the modding community. diff --git a/src/Bannerlord.ButterLib.Implementation/SaveSystem/Patches/BehaviourNamePatch.cs b/src/Bannerlord.ButterLib.Implementation/SaveSystem/Patches/BehaviourNamePatch.cs index efeb884f..2db0d0e5 100644 --- a/src/Bannerlord.ButterLib.Implementation/SaveSystem/Patches/BehaviourNamePatch.cs +++ b/src/Bannerlord.ButterLib.Implementation/SaveSystem/Patches/BehaviourNamePatch.cs @@ -34,9 +34,9 @@ internal static bool Disable(Harmony harmony) return true; } - private static void CampaignBehaviorBaseCtorPostfix(CampaignBehaviorBase instance, ref string ___StringId) + private static void CampaignBehaviorBaseCtorPostfix(CampaignBehaviorBase __instance, ref string ___StringId) { - var module = ModuleInfoHelper.GetModuleByType(instance.GetType()); + var module = ModuleInfoHelper.GetModuleByType(__instance.GetType()); if (module is null) // A non-module dll { return; @@ -47,7 +47,7 @@ private static void CampaignBehaviorBaseCtorPostfix(CampaignBehaviorBase instanc return; } - ___StringId = instance.GetType().FullName; + ___StringId = __instance.GetType().FullName; } } } \ No newline at end of file