Extractors pulling more items than required, leading to items flung out of pipes
DrUltraLux opened this issue ยท 7 comments
In this case a Furnace requests a log if it reaches 63 logs in the stack. A diamond extractor set to 1 item whitelisting logs, pulls the log from a chest and sends the log along the pipe. However it continues sending more logs along the pipe until the first log reaches the destination.
The furnace now full refuses more items and the remaining logs are flung out of the pipes onto the floor.
A complex setup involving redstone comparitors etc. can be used to solve this by pulsing a redstone signal to the extractor. However this seems against the spirit of the mod.
The issue is that it's basically just oversending. It has to take in account the items that are already on the way.
In theory this is easy to fix, but the accounting on the inventory destination side is hard to do since it's not possible to simulate insert batches of items, so we have to do an estimation, that would work most of the time.
Additionally, I think if the estimation is unexpectedly wrong the Items should bounce back to the original inventory.
Optionally otherwise maybe play a sound when the item gets ejected?
Then there is also the problem of ending up with tons of items on the ground. Might need to check how many items are in the area before dropping anything.
The issue is that it's basically just oversending. It has to take in account the items that are already on the way.
In theory this is easy to fix, but the accounting on the inventory destination side is hard to do since it's not possible to simulate insert batches of items, so we have to do an estimation, that would work most of the time.
Maybe just direct item to another side (don't pull it out)?