From 486a4acc324c33e454366bd6f914b55595bc0858 Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Sat, 9 Sep 2023 20:01:12 -0400 Subject: [PATCH] Fix cosmetic not showing up on main menu when skinNameToHijack is "*" --- Patches/MainMenuPanelPatches.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Patches/MainMenuPanelPatches.cs b/Patches/MainMenuPanelPatches.cs index 40d07d4..1af2daa 100644 --- a/Patches/MainMenuPanelPatches.cs +++ b/Patches/MainMenuPanelPatches.cs @@ -17,14 +17,14 @@ namespace CustomCosmeticLoader.Patches if (!Config.inMainMenu) return; - if (Config.skinNameToHijack == "*") - return; - if (__instance.cosmeticDisplay) { - __instance.cosmeticDisplay.Clear(); - GameObjectAllocator.Deinitialize(__instance.cosmeticDisplay.gameObject); - __instance.cosmeticDisplay.Setup(Shared.SkinToHijack, CosmeticType.Skin, true, true); + if (Config.skinNameToHijack != "*") + { + __instance.cosmeticDisplay.Clear(); + GameObjectAllocator.Deinitialize(__instance.cosmeticDisplay.gameObject); + __instance.cosmeticDisplay.Setup(Shared.SkinToHijack, CosmeticType.Skin, true, true); + } Shared.ApplyCustomTexture(__instance.cosmeticDisplay.CachedCosmeticGameObject); } }