Fix inAllReplays functionality
This commit is contained in:
parent
41a1e75946
commit
e424692f58
2 changed files with 7 additions and 5 deletions
|
@ -58,6 +58,12 @@ namespace CustomCosmeticLoader.Patches
|
|||
if (!Config.enabled || Config.skinNameToHijack == "*")
|
||||
return;
|
||||
|
||||
if (Config.inAllReplays)
|
||||
{
|
||||
cosmetics.Skin = Config.skinNameToHijack;
|
||||
return;
|
||||
}
|
||||
|
||||
string replayName = null;
|
||||
|
||||
GamePlayManager.Get().GetCurrentReplays(delegate (List<Replay> replays)
|
||||
|
@ -70,10 +76,6 @@ namespace CustomCosmeticLoader.Patches
|
|||
|
||||
if (Config.otherPlayers.ContainsKey(replayName) || replayName == Player.Current.Name)
|
||||
cosmetics.Skin = Config.skinNameToHijack;
|
||||
|
||||
// HACK - call this early so that SetMarble is aware of it
|
||||
// Normally it would be called right AFTER ApplyCosmetics
|
||||
__instance.AddMode(MarbleController.ReplayMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace CustomCosmeticLoader.Patches
|
|||
}
|
||||
else
|
||||
{
|
||||
if (MarbleManager.Replaying)
|
||||
if (MarbleManager.Replaying && !Config.inAllReplays)
|
||||
{
|
||||
string replayName = null;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue