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 Stocking Buses running recipes while offline #2608

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ALongStringOfNumbers
Copy link
Contributor

What

Fixes Stocking buses/hatches running recipes while they are offline.

Closes #2559

Implementation Details

Immediately resync the inventory if the online status of the network changes

Outcome

Fixes Stocking buses being able to provide inputs to multiblocks while they are offline.

@ALongStringOfNumbers ALongStringOfNumbers added the type: bug Something isn't working label Sep 4, 2024
@ALongStringOfNumbers ALongStringOfNumbers requested a review from a team as a code owner September 4, 2024 03:06
@ALongStringOfNumbers ALongStringOfNumbers added type: bug Something isn't working and removed type: bug Something isn't working labels Sep 4, 2024
Copy link
Contributor

@IntegerLimit IntegerLimit left a comment

Choose a reason for hiding this comment

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

If offline, wouldn't it just be simpler and cleaner to clear the item slots instead of performing a full refresh, such as its done in Labs?

// Immediately clear cached items if the status changed, to prevent running recipes while offline
if (this.meStatusChanged && !this.isOnline) {
if (autoPull) {
clearInventory(0);
Copy link
Member

Choose a reason for hiding this comment

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

Can this use getAEItemHandler().clearConfig()? If so maybe this and other occurrences of clearInventory(0) should move to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiblock keeps running without consuming input when ME Stocking Input Bus/Hatch is disconnected
3 participants