Skip to content

Commit

Permalink
Fix: Resolve Truffle to Weed Bug and Picking up Plush Bunny Issue (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
WuZhuoran authored Apr 5, 2024
1 parent 1700307 commit 7311497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions AnimalSitter/AnimalSitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ private void IterateOverAnimals()
Object toAdd = new Object(animal.currentProduce.Value, 1, false, -1, animal.produceQuality.Value);
this.AddItemToInventory(toAdd, farmer);

animal.currentProduce.Value = "0";
stats.TrufflesHarvested++;
}
}
Expand Down Expand Up @@ -344,7 +343,7 @@ private void HarvestCoops(AnimalTasks stats)

this.Monitor.Log($"Found coop object: {obj.Name} / {obj.Category}/{obj.isAnimalProduct()}", LogLevel.Trace);

if (obj.isAnimalProduct() || obj.ParentSheetIndex == 107)
if (obj.isAnimalProduct() || obj.ParentSheetIndex == 107 && obj.Name != "Plush Bunny")
{
if (this.AddItemToInventory(obj, farmer))
{
Expand Down
2 changes: 1 addition & 1 deletion AnimalSitter/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "Animal Sitter LTS",
"Author": "oliver",
"Version": "2.0.4",
"Version": "2.0.5",
"Description": "Long Term Support Mod Version for Animal Sitter Mod. Let someone else pet all those pesky animals!",
"UniqueID": "oliver.AnimalSitterLTS",
"EntryDll": "AnimalSitter.dll",
Expand Down

0 comments on commit 7311497

Please sign in to comment.