Fix VoteAvatars which are zombies with custom skins
This commit is contained in:
parent
8764546768
commit
f3ba03ff45
1 changed files with 5 additions and 5 deletions
|
@ -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,6 +16,10 @@ 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())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue