Skip to content

Commit

Permalink
Fixed trying to plant trees in the greenhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-skistad committed Nov 6, 2024
1 parent 77b5453 commit ae389ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BetterJunimos/Abilities/Base/PlantCropsAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private bool IsTrellisCrop(Item item, GameLocation location) {
//Verify if the item is a crop seed
private bool IsCrop(Item item, GameLocation location) {
var objCrop = new StardewValley.Object(item.ItemId, 1);
return objCrop.Category == -74 && item.ItemId != "770" && item.ItemId != "MixedFlowerSeeds";
return objCrop.Category == -74 && item.ItemId != "770" && item.ItemId != "MixedFlowerSeeds" && !Tree.GetWildTreeSeedLookup().Keys.Contains(item.ItemId) && !Game1.fruitTreeData.Keys.Contains(item.ItemId);
}

public List<string> RequiredItems() {
Expand Down

0 comments on commit ae389ca

Please sign in to comment.