Repository navigation
Keep jobs of attuned interfaces in the network when their target updates - #251
Merged
rubensworks merged 1 commit intoOct 14, 2026
Merged
Conversation
Targets such as furnaces notify their neighbours every time their contents change. Attuned crafting interfaces unregistered from the crafting network on each of these notifications, and only registered again on their next update. In between, their crafting jobs were missing from the dependency graph, so dependent jobs were reported as missing ingredients. Attuned interfaces now only re-register when their target gained or lost its recipe handler, or exposes other recipes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y
Member
Author
|
Generated by Claude Code |
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.
Backport of #250 to 1.20.
Targets such as furnaces notify their neighbours whenever their contents change.
PartTypeInterfaceCraftingAttuned.onBlockNeighborChangeunregistered the interface from the crafting network on each of these notifications, and only registered it again on the interface's next part update. In between, the interface's crafting jobs were missing from the network's dependency graph. Jobs depending on them were then reported as missing ingredients, and the re-registration duplicated their dependency edges (#249).Attuned interfaces now only re-register when their target gained or lost its recipe handler, or exposes other recipes than the ones that were last read.
Tested with
./gradlew buildon JDK 17. The game test from #250 is not included, as this branch has no game tests.🤖 Generated with Claude Code
https://claude.ai/code/session_01C5iUzweRYoCkKB5bvJdH8Y
Generated by Claude Code