Skip to content

fix(logistics): enforce correct promise ordering for cascading factory requests#226

Open
Eldrinn-Elantey wants to merge 1 commit intozznty:masterfrom
Eldrinn-Elantey:master
Open

fix(logistics): enforce correct promise ordering for cascading factory requests#226
Eldrinn-Elantey wants to merge 1 commit intozznty:masterfrom
Eldrinn-Elantey:master

Conversation

@Eldrinn-Elantey
Copy link

Issue: in cascading crafting requests, a parent-level Promise could be created before child-level ones, and promises could also be added when no actual requests were generated, causing crafting to stall.

Changes:

Switched request storage to LinkedHashMap to preserve deterministic bottom-up processing order. Added explicit tracking for contexts that produced real requests. Now creates output promises only when requests were actually generated and then fully dispatched.

…y requests

Issue: in cascading crafting requests, a parent-level Promise could be created before child-level ones, and promises could also be added when no actual requests were generated, causing crafting to stall.

Changes:

Switched request storage to LinkedHashMap to preserve deterministic bottom-up processing order.
Added explicit tracking for contexts that produced real requests.
Now creates output promises only when requests were actually generated and then fully dispatched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments