-
Notifications
You must be signed in to change notification settings - Fork 176
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
1f000c2
to
8247a2f
Compare
// Immediately clear cached items if the status changed, to prevent running recipes while offline | ||
if (this.meStatusChanged && !this.isOnline) { | ||
if (autoPull) { | ||
clearInventory(0); |
There was a problem hiding this comment.
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.
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.