diff --git a/About/About.xml b/About/About.xml index 0d1a04fe..e5a355be 100644 --- a/About/About.xml +++ b/About/About.xml @@ -1,6 +1,6 @@  - Facial Stuff 0.17.3.3b + Facial Stuff 0.17.3.3c Killface 0.17.1557 diff --git a/Assemblies/FacialStuff.dll b/Assemblies/FacialStuff.dll index fc95e7bd..5a3529e5 100644 Binary files a/Assemblies/FacialStuff.dll and b/Assemblies/FacialStuff.dll differ diff --git a/Source/RW_FacialStuff/Harmony/HarmonyPatches.cs b/Source/RW_FacialStuff/Harmony/HarmonyPatches.cs index c1f5414f..16b83b0b 100644 --- a/Source/RW_FacialStuff/Harmony/HarmonyPatches.cs +++ b/Source/RW_FacialStuff/Harmony/HarmonyPatches.cs @@ -407,29 +407,25 @@ private static void CheckAllInjected() // [HarmonyPatch("DoWindowContents")] static class Dialog_Options_DoWindowContents_Patch { - private static bool hatsOnlyOnMap; - private static bool noHatsInBed; - static void MoreStuff(Listing_Standard listing_Standard) { - hatsOnlyOnMap = Controller.settings.HideHatWhileRoofed; - listing_Standard.CheckboxLabeled("Settings.HideHatWhileRoofed".Translate(), ref hatsOnlyOnMap, "Settings.HideHatWhileRoofedTooltip".Translate()); + bool hideHatWhileRoofed = Controller.settings.HideHatWhileRoofed; + listing_Standard.CheckboxLabeled("Settings.HideHatWhileRoofed".Translate(), ref hideHatWhileRoofed, "Settings.HideHatWhileRoofedTooltip".Translate()); - noHatsInBed = Controller.settings.HideHatInBed; - listing_Standard.CheckboxLabeled("Settings.HideHatInBed".Translate(), ref noHatsInBed, "Settings.HideHatInBedTooltip".Translate()); + bool hideHatsInBed = Controller.settings.HideHatInBed; + listing_Standard.CheckboxLabeled("Settings.HideHatInBed".Translate(), ref hideHatsInBed, "Settings.HideHatInBedTooltip".Translate()); if (GUI.changed) { - - if (hatsOnlyOnMap != Controller.settings.HideHatWhileRoofed) + if (hideHatWhileRoofed != Controller.settings.HideHatWhileRoofed) { - Controller.settings.HideHatWhileRoofed = hatsOnlyOnMap; + Controller.settings.HideHatWhileRoofed = hideHatWhileRoofed; Controller.settings.Write(); } - if (noHatsInBed != Controller.settings.HideHatInBed) + if (hideHatsInBed != Controller.settings.HideHatInBed) { - Controller.settings.HideHatInBed = noHatsInBed; + Controller.settings.HideHatInBed = hideHatsInBed; Controller.settings.Write(); } }