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); } }