We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1291d85 commit 27827c0Copy full SHA for 27827c0
Mod.cs
@@ -503,10 +503,15 @@ private void fixLocation( GameLocation loc )
503
hd.crop = null;
504
else
505
{
506
- var key = cropIds.Last(x => x.Value == hd.crop.rowInSpriteSheet).Key;
507
- var c = crops.Last(x => x.Name == key);
508
- if (c != null) // Non-JA crop
509
- hd.crop.indexOfHarvest.Value = ResolveObjectId(c.Product);
+ try
+ {
+ var key = cropIds.Last(x => x.Value == hd.crop.rowInSpriteSheet).Key;
+ var c = crops.Last(x => x.Name == key);
510
+ if (c != null) // Non-JA crop
511
+ hd.crop.indexOfHarvest.Value = ResolveObjectId(c.Product);
512
+ }
513
+ catch { continue; }
514
+
515
}
516
517
else if (tf.Last().Value is FruitTree ft)
0 commit comments