Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sticky storages break autocrafting #545

Merged
merged 6 commits into from
Aug 17, 2024
Merged

Fix sticky storages break autocrafting #545

merged 6 commits into from
Aug 17, 2024

Conversation

hiroscho
Copy link

@hiroscho hiroscho commented Aug 10, 2024

Fix GTNewHorizons/GT-New-Horizons-Modpack#16152

The current implementation always tries to store into sticky inventories first. If there is any sticky inventory that can store the item, it will not attempt to insert into any non-sticky inventories.
This breaks autocrafting since the item will never be injected into the CraftingGridCache.

GTNewHorizons/AE2FluidCraft-Rework#221 is related to this PR. The ae2fc PR will allow sticky inventory autocrafting to work with fluids too.

hiroscho added a commit to hiroscho/AE2FluidCraft-Rework that referenced this pull request Aug 10, 2024
@Dream-Master Dream-Master requested review from Laiff, OneEyeMaker and a team August 10, 2024 15:27
@SKProCH
Copy link

SKProCH commented Aug 12, 2024

Seems like this change crashes my server with the following crashlog: crash-2024-08-12_12.12.17-server.txt

@hiroscho hiroscho requested a review from tth05 August 12, 2024 18:19
@hiroscho
Copy link
Author

hiroscho commented Aug 12, 2024

I removed the getter and setter from the InventoryHandler and MonitorHandler since those were mainly required to set the status for ae2fc.

Copy link

@tth05 tth05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@Dream-Master Dream-Master merged commit cde3238 into GTNewHorizons:master Aug 17, 2024
1 check passed
@hiroscho hiroscho deleted the issue/fix-sticky-autocrafting branch August 17, 2024 05:52
Dream-Master added a commit to GTNewHorizons/AE2FluidCraft-Rework that referenced this pull request Aug 18, 2024
* Fix fluid autocrafting

Depends on GTNewHorizons/Applied-Energistics-2-Unofficial#545

* update

* update

* rename

* Add FluidCraftingInventoryHandler so that fluid crafting isn't handled in Pass 2

* update deps

---------

Co-authored-by: hiroscho <hiroscho.games@gmail.com>
Co-authored-by: Dream Master <dream-master@gmx.net>
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.

Sticky Card breaks Autocrafting
5 participants