From 7653fd22c0df8f9b45db0e2748c0470a45eb8736 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 7 Feb 2024 01:31:47 +0100 Subject: [PATCH] Fix meta state updating logic. --- Glamourer/State/StateListener.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Glamourer/State/StateListener.cs b/Glamourer/State/StateListener.cs index 23e0f3c..626c64d 100644 --- a/Glamourer/State/StateListener.cs +++ b/Glamourer/State/StateListener.cs @@ -564,7 +564,7 @@ public class StateListener : IDisposable { // if base state changed, either overwrite the actual value if we have fixed values, // or overwrite the stored model state with the new one. - if (!state.Sources[MetaIndex.VisorState].IsFixed()) + if (state.Sources[MetaIndex.VisorState].IsFixed()) value = state.ModelData.IsVisorToggled(); else _manager.ChangeMetaState(state, MetaIndex.VisorState, value, ApplySettings.Game); @@ -597,7 +597,7 @@ public class StateListener : IDisposable { // if base state changed, either overwrite the actual value if we have fixed values, // or overwrite the stored model state with the new one. - if (!state.Sources[MetaIndex.HatState].IsFixed()) + if (state.Sources[MetaIndex.HatState].IsFixed()) value = state.ModelData.IsHatVisible(); else _manager.ChangeMetaState(state, MetaIndex.HatState, value, ApplySettings.Game); @@ -630,7 +630,7 @@ public class StateListener : IDisposable { // if base state changed, either overwrite the actual value if we have fixed values, // or overwrite the stored model state with the new one. - if (!state.Sources[MetaIndex.WeaponState].IsFixed()) + if (state.Sources[MetaIndex.WeaponState].IsFixed()) value = state.ModelData.IsWeaponVisible(); else _manager.ChangeMetaState(state, MetaIndex.WeaponState, value, ApplySettings.Game);