Emzuli pipes behaviour
Nagapito opened this issue ยท 7 comments
Not sure if its a bug or emzuli pipes changed but I am trying to implement the alternating output behaviour described by Covertjaguar here: https://www.youtube.com/watch?v=RND78mHRsrM and they simple dont do it.
Once I turn on both levers, the pipe only outputs the item associated with the first activated lever...
Thanks
You're right. I don't think it was changed on purpose, but I can't say for sure. It looks like the logic in the pipe is currently taking things stack by stack instead of taking one of each type. This is not how I intended it when I made the pipe.
There have also been similar questions related to the Emerald pipes white and black list options. In that case I don't remember how it worked when I updated the Emerald pipe, but both pipes might have changed after optimization of some kind.
I'm on BuildCraft 7.0.15, which is kind of old now. Maybe the pipes changed in the updates in BC 7.
@Nagapito You would. (You wouldn't if you used an odd number of filters, such as 1 or 3.) Anyhow, fixed.
@SandGrainOne - "Stack by stack instead of taking one of each type". Sadly, your code speaks otherwise:
BuildCraft/common/buildcraft/transport/pipes/PipeItemsLogemerald.java
Lines 160 to 164 in 14dc001
If you want it to work this way, please tell me, but that would not be in line with the rest of BuildCraft. (However, BC 8 will be reworking the whole system anyway.)
As for them not toggling, that is a bug and I am looking into it right now.
Found the bug. It was broken in the RF rewrite back in BC 6.1.x as I suddenly started calling checkExtract() with doRemove set to false as well as true, meaning that the filter incremented twice - and constantly repeated the same one.
I also used the occasion to refactor the code a tiny bit.