public static void Postfix(ref StardewValley.FarmAnimal __instance, ref GameLocation environtment) { if (__instance.pushAccumulator == 1) { __instance.pushAccumulator = 0; } else { __instance.daysToLay.Value = (byte)__instance.pauseTimer; var moddedAnimal = new Decorators.FarmAnimal(__instance); moddedAnimal.SetPauseTimer(0); var hitGlowTimer = (byte)moddedAnimal.GetHitGlowTimer(); moddedAnimal.SetHitGlowTimer(0); HandleCurrentProduce(ref moddedAnimal, hitGlowTimer); } }