Fix cosmetic not showing up on main menu when skinNameToHijack is "*"
This commit is contained in:
parent
cdb2b7b3f4
commit
486a4acc32
1 changed files with 6 additions and 6 deletions
|
@ -17,14 +17,14 @@ namespace CustomCosmeticLoader.Patches
|
||||||
if (!Config.inMainMenu)
|
if (!Config.inMainMenu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Config.skinNameToHijack == "*")
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (__instance.cosmeticDisplay)
|
if (__instance.cosmeticDisplay)
|
||||||
{
|
{
|
||||||
__instance.cosmeticDisplay.Clear();
|
if (Config.skinNameToHijack != "*")
|
||||||
GameObjectAllocator.Deinitialize(__instance.cosmeticDisplay.gameObject);
|
{
|
||||||
__instance.cosmeticDisplay.Setup(Shared.SkinToHijack, CosmeticType.Skin, true, true);
|
__instance.cosmeticDisplay.Clear();
|
||||||
|
GameObjectAllocator.Deinitialize(__instance.cosmeticDisplay.gameObject);
|
||||||
|
__instance.cosmeticDisplay.Setup(Shared.SkinToHijack, CosmeticType.Skin, true, true);
|
||||||
|
}
|
||||||
Shared.ApplyCustomTexture(__instance.cosmeticDisplay.CachedCosmeticGameObject);
|
Shared.ApplyCustomTexture(__instance.cosmeticDisplay.CachedCosmeticGameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue