Line 64: |
Line 64: |
| <source lang="c#"> | | <source lang="c#"> |
| | | |
− | foreach (var tf in Game1.getFarm().terrainFeatures.Pairs)
| + | foreach (var tf in Game1.getFarm().terrainFeatures.Pairs) |
− | {
| + | { |
− | if ((tf.Value is HoeDirt hd) && hd.crop != null)
| + | if ((tf.Value is HoeDirt hd) && hd.crop != null) |
− | {
| + | { |
− | // do crop like things here.
| + | // do crop like things here. |
− | }
| + | } |
− | }
| + | } |
| </source> | | </source> |
| | | |