[BadAnimatorFix] Don't touch non-loop states.

This commit is contained in:
NotAKidoS 2023-08-14 18:52:43 -05:00
parent 935639a2f3
commit ab4276e880
5 changed files with 16 additions and 34 deletions

View file

@ -27,7 +27,6 @@ public class BadAnimatorFix : MelonMod
public override void OnInitializeMelon()
{
Logger = LoggerInstance;
EntryEnabled.OnEntryValueChanged.Subscribe(OnEntryEnabledChanged);
ApplyPatches(typeof(HarmonyPatches.AnimatorPatches));
}
@ -39,11 +38,6 @@ public class BadAnimatorFix : MelonMod
BadAnimatorFixManager.OnSceneInitialized(sceneName);
}
private void OnEntryEnabledChanged(bool newValue, bool oldValue)
{
BadAnimatorFixManager.ToggleJob(newValue);
}
private void ApplyPatches(Type type)
{
try