Skip to content

Commit

Permalink
fix: tempfix for bleat button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
InfernoDragon0 committed Nov 15, 2024
1 parent 49244e8 commit 95c0658
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions COTL_API/CustomSkins/CustomSkinPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,19 @@ private static bool PlayerFarming_SetSkin(ref Skin __result, PlayerFarming __ins
[HarmonyPrefix]
private static bool PlayerFarming_BleatRoutine(PlayerFarming __instance)
{
var playerType = !__instance.isLamb || __instance.IsGoat ? PlayerType.GOAT : PlayerType.LAMB;
var playerInstance = !__instance.isLamb || __instance.IsGoat ? PlayerFarming.players[1] : PlayerFarming.players[0];
var playerType = PlayerType.LAMB;

//TODO: TEMPFIX. find out what happened in the update, why is both isLamb and isGoat returning false?
LogInfo("IsLamb" + __instance.isLamb);
LogInfo("IsGoat" + __instance.IsGoat);

var playerInstance = PlayerFarming.players[0];

if (CoopManager.CoopActive)
{
playerType = !__instance.isLamb || __instance.IsGoat ? PlayerType.GOAT : PlayerType.LAMB;
playerInstance = !__instance.isLamb || __instance.IsGoat ? PlayerFarming.players[1] : PlayerFarming.players[0];
}

if (!PlayerBleatOverride.ContainsKey(playerType)) return true;

Expand Down

0 comments on commit 95c0658

Please sign in to comment.