diff --git a/Patches/GhostRaceMarbleControllerPatches.cs b/Patches/GhostRaceMarbleControllerPatches.cs index 4d84b15..83ca281 100644 --- a/Patches/GhostRaceMarbleControllerPatches.cs +++ b/Patches/GhostRaceMarbleControllerPatches.cs @@ -2,6 +2,7 @@ using MIU; using System; using System.Collections.Generic; +using UnityEngine; namespace CustomCosmeticLoader.Patches { @@ -28,7 +29,13 @@ namespace CustomCosmeticLoader.Patches if (Config.skinNameToHijack != "*") mHolder.SetMarble(Shared.SkinToHijack); - Shared.ApplyCustomTexture(mHolder.currentMarble, Config.skins[Config.otherPlayers[replayName]]); + Texture2D skin; + if (replayName == Player.Current.Name) + skin = Config.skins[Config.currentSkin]; + else + skin = Config.skins[Config.otherPlayers[replayName]]; + + Shared.ApplyCustomTexture(mHolder.currentMarble, skin); } } }