Slimefun4
Slimefun4 copied to clipboard
Cargo Input Nodes don't transfer whitelisted Items if not-whitelisted items come first
Description
With an Input Node in Blacklist mode and no items blacklisted, connected to a chest with an Advanced Output Node with an item whitelisted, if any items are blocking the slots before the whitelisted item in the input chest with nowhere to go, the whitelisted item never gets transported.
Evidence / Proof
GIF: https://i.gyazo.com/7199e6c7f7e7f173fa3c7f1dfa778efc.gif
Environment
MC version: 1.11.2 (git-Paper-1032) CS-CoreLib version: 1.5.12 Slimefun version: 4.1.1
Yes, I agree, that somehow causes the sorting system halted when one of the container is fulled
This is caused by the blacklisted block being added to itemRequests, then being checked later and finding it is blacklisted and ignored.
Is it fixed?
I personally didn't, it's possible someone else did, but it would require redoing to blacklist system from what I saw.
This is caused by the blacklisted block being added to itemRequests, then being checked later and finding it is blacklisted and ignored.
I don't think so. Maybe it's just halted by withdraw? From my understanding:
- That code gets the first item of the inventory, and it's in the whitelist or not in the blacklist.
- The item cannot insert into destination that is full.
- Send the item back to the original slot of the inventory.
- next tick goto 1. (loop)
Keep in mind, I last worked on this 10 months ago, things definitely changed.
Still experiancing this problem, but with input node with whitelist, and it can't put the items into a Electric Smelter (because the smelter is full).
This also happens on freezer II even with both items whitelisted in advanced output. Your outputting empty buckets and ice, the buckets end up in the first slot, if they don't get removed because the destination is full then it skips moving the ice even though its destination is empty.
I think I remember what I found originally (again, might of been changed):
- First item is gotten from the inventory and put into itemRequests
- Blacklist/whitelist is checked
- Check fails, item is removed from the list and not transferred This repeats over and over again because the whitelist/blacklist check only runs on the first item and doesn't fetch a second.
Given the age of this and the upcoming cargo rewrite later this year, I would recommend we close this out, and add this to the plans for the cargo rewrite to find a way to check for this
It's still an issue present in the current version, so I would say it's better to keep this documented. If this was closed people may assume it is fixed, and could lead to duplicate issues. Though I agree it may be better to combine this with the other cargo-rewrite-related tasks.