WuZhuoran / Stardew_AnimalSitter

Animal Sitter Mod for Stardew Valley with long term support.
MIT License
2 stars 0 forks source link

[Bug] After harvest pigs, they search for weeds instead trouffles #9

Closed WuZhuoran closed 6 months ago

WuZhuoran commented 6 months ago

From this page: https://www.nexusmods.com/stardewvalley/mods/20831?tab=posts

Mrstraxler commented 6 months ago
Screenshot 2024-04-02 at 12 24 36 AM

Heres an image its driving me crazy haha!

WuZhuoran commented 6 months ago
Screenshot 2024-04-02 at 12 24 36 AM

Heres an image its driving me crazy haha!

Thanks for your screenshot! I will update the mod ASAP.

WuZhuoran commented 6 months ago
Screenshot 2024-04-02 at 12 24 36 AM

Heres an image its driving me crazy haha!

Hi @Mrstraxler

I just update version v2.0.4 https://www.nexusmods.com/stardewvalley/mods/20831 It will temporary resolve this issue.

I already root cause this issue. This happend bcause we have a config TakeTrufflesFromPigs which will get one Truffle from pig for the first time when you press O. Then this bug happened. I think the root cause line of code is here: https://github.com/WuZhuoran/Stardew_AnimalSitter/blob/45cf9b0c3d60b701a037827a2633f72c5215ddd4/AnimalSitter/AnimalSitter.cs#L220

So I just update v2.0.4 which is a temp solution: Disable this config.

The only disadvantage is that you cannot get a truffle before the pig searched any truffle. (That is reasonable!)

I will continue working on a fix to make this config workable. Let me know if new version could work or not. Thank!