Skip to content

Commit 95c0658

Browse files
fix: tempfix for bleat button not working
1 parent 49244e8 commit 95c0658

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

COTL_API/CustomSkins/CustomSkinPatches.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,19 @@ private static bool PlayerFarming_SetSkin(ref Skin __result, PlayerFarming __ins
190190
[HarmonyPrefix]
191191
private static bool PlayerFarming_BleatRoutine(PlayerFarming __instance)
192192
{
193-
var playerType = !__instance.isLamb || __instance.IsGoat ? PlayerType.GOAT : PlayerType.LAMB;
194-
var playerInstance = !__instance.isLamb || __instance.IsGoat ? PlayerFarming.players[1] : PlayerFarming.players[0];
193+
var playerType = PlayerType.LAMB;
194+
195+
//TODO: TEMPFIX. find out what happened in the update, why is both isLamb and isGoat returning false?
196+
LogInfo("IsLamb" + __instance.isLamb);
197+
LogInfo("IsGoat" + __instance.IsGoat);
198+
199+
var playerInstance = PlayerFarming.players[0];
200+
201+
if (CoopManager.CoopActive)
202+
{
203+
playerType = !__instance.isLamb || __instance.IsGoat ? PlayerType.GOAT : PlayerType.LAMB;
204+
playerInstance = !__instance.isLamb || __instance.IsGoat ? PlayerFarming.players[1] : PlayerFarming.players[0];
205+
}
195206

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

0 commit comments

Comments
 (0)