Skip to content

Commit

Permalink
Merge pull request #18 from Sandman534/AutoHarvestFix
Browse files Browse the repository at this point in the history
Fixed Harvest Automation for Mod Added Crops
  • Loading branch information
Hackswell authored Apr 23, 2024
2 parents a75a7a2 + 4b30363 commit 362765e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JoysOfEfficiency/Automation/HarvestAutomation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ public static void ToggleBlacklistUnderCursor()
}
else
{
string name = dirt.crop.whichForageCrop.Value;
string cropID = dirt.crop.indexOfHarvest.Value;
string name = ItemRegistry.ResolveMetadata(cropID)?.GetParsedData().DisplayName;
if (name == "")
{
return;
Expand Down

0 comments on commit 362765e

Please sign in to comment.