From f3ba03ff4520331364b1deeedf664e62a668f79b Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Mon, 11 Sep 2023 01:23:57 -0400 Subject: [PATCH] Fix VoteAvatars which are zombies with custom skins --- Patches/VoteAvatarPatches.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Patches/VoteAvatarPatches.cs b/Patches/VoteAvatarPatches.cs index 27f5230..b4ef5cd 100644 --- a/Patches/VoteAvatarPatches.cs +++ b/Patches/VoteAvatarPatches.cs @@ -1,9 +1,5 @@ using HarmonyLib; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace CustomCosmeticLoader.Patches @@ -20,12 +16,16 @@ namespace CustomCosmeticLoader.Patches if (!Config.enabled) return; + // Don't override zombies + if (__instance.widget.cosmeticDisplay.cosmetic.Id == "Zombie") + return; + Texture2D skin = null; if (marble.isMyClientMarble()) { skin = Config.skins[Config.currentSkin]; } - else + else { if (Config.otherPlayers.ContainsKey(marble.nickname)) skin = Config.skins[Config.otherPlayers[marble.nickname]];