mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Fix outfit preset skin not loading
This commit is contained in:
1 parent
fd9a0e93dc
commit
8ce0dbb9eb
1 file changed
+7
-1
@@ -17,11 +17,17 @@ internal static class PlayerTabPatch
|
||||
private static float cooldown = 0f; // Button click cooldown
|
||||
private static readonly List<SpriteRenderer> _favoriteIcons = [];
|
||||
|
||||
[HarmonyPatch(typeof(PlayerTab), nameof(PlayerTab.OnEnable))]
|
||||
[HarmonyPrefix]
|
||||
private static void PlayerTab_OnEnable_Prefix(PlayerTab __instance)
|
||||
{
|
||||
SetupOutfitPresets(__instance);
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(PlayerTab), nameof(PlayerTab.OnEnable))]
|
||||
[HarmonyPostfix]
|
||||
private static void PlayerTab_OnEnable_Postfix(PlayerTab __instance)
|
||||
{
|
||||
SetupOutfitPresets(__instance);
|
||||
SetupFavoriteColor(__instance);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user