Repository navigation
Stop reporting invalid inputs for jobs that only wait for their interface - #246
Merged
Merged
Conversation
…face When the target of a crafting interface refused a job's inputs, for example a furnace that was still busy, the job was marked as having invalid inputs. Jobs are only tested again when the interface has room to start one, so once another job started, the refused jobs kept that mark until the running job was done, even if the target had accepted inputs again in the meantime. Terminals showed them as failed for that whole time. Starting a job now clears the mark on the other pending jobs of the same interface, as their earlier test no longer applies. They are tested again on the next attempt, so a target that keeps refusing is still reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y
If the target refused the inputs on insertion after all, its state did not change, so the other jobs keep their mark. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y
rubensworks
pushed a commit
to CyclopsMC/IntegratedTerminals
that referenced
this pull request
Oct 12, 2026
This version stops reporting crafting jobs as having invalid inputs while they only wait for their crafting interface (CyclopsMC/IntegratedCrafting#246). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
If a crafting interface's target refuses a job's inputs, the job is marked as having invalid inputs. That happens for example when a furnace is still smelting something else. The job then reports
INVALID_INPUTS, which terminals show as "Recipe Not Allowed" in red.Pending jobs are only tested again while the interface has room to start a job. Once one of the refused jobs starts, that room is gone, so the other refused jobs keep their mark for as long as the running job takes. That stays true even if the target has accepted inputs in the meantime. In a hopper minecart job with iron smelted in a furnace, the second iron job reported
INVALID_INPUTSfor about 1000 ticks while it was only waiting for the first one. Crafting itself completes correctly; only the reported status is wrong.Fix
Once
CraftingJobHandlerhas inserted a started job into the target, it clears the mark on that handler's other pending jobs. They were tested against the target's previous state, so they now reportPENDING_INTERFACE.Testing
GameTestsItemsCraftBusyTarget.testRefusedJobsWaitForInterfaceOnceAnotherJobStarts:PENDING_INTERFACE.Expected Status of the waiting job to be PENDING_INTERFACE, but was INVALID_INPUTS../gradlew buildpasses, and./gradlew runGameTestServerpasses all 80 game tests.The same fix for 1.20 is in #247, without the game test. Integrated Terminals also stops showing
INVALID_INPUTSas a failure in CyclopsMC/IntegratedTerminals#233.🤖 Generated with Claude Code
https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y