Skip to content

Mini bugfix: crop managers water/fertilize/weedex broken crop sticks - #273

Merged
C0bra5 merged 1 commit into
GTNewHorizons:masterfrom
MarloGr:master
Sep 23, 2026
Merged

C0bra5 merged 1 commit into
GTNewHorizons:masterfrom
MarloGr:master

Conversation

@MarloGr

@MarloGr MarloGr commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Crop managers continue to process broken/removed crops and crop sticks for up to ~30s.

Tested in DevEnv: Crop manager with 2 crop sticks, broke one then added fertilizer to the CM. It used 4 (2 on existing, 2 on broken crop).
After this patch the CM only uses 2 fertilizer in the same test.

I expanded the null checks of the CM to check if there is a valid crop present. Didn't test in Fullpack because the change is minimal. Performance overhead should be insignificant as well.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@Dream-Master
Dream-Master requested a review from C0bra5 September 23, 2026 08:49
@C0bra5
C0bra5 merged commit 47debb7 into GTNewHorizons:master Sep 23, 2026
1 check passed
@C0bra5 C0bra5 added Bug Fix Fix a bug. Please link it in the PR. Safe for Stable Bugfix with low break chance for patch releases labels Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Fix a bug. Please link it in the PR. Safe for Stable Bugfix with low break chance for patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants