McJtyMods / XNet

Advanced item/liquid/energy/... networking
MIT License
92 stars 51 forks source link

Fluids are not pulled in priority order #467

Open cornytrace opened 3 years ago

cornytrace commented 3 years ago

Issue description: I have two machines outputting the same fluid set to extract mode, one of priority 1 and the other of priority 0. The channel is in priority mode. What I expect: the machine with priority 1 is completely drained before machine prio 0 begins to be drained. What I observe: When a large amount of fluid fits in the inserted machine, both extract machines are being drained equally, at the same time. When only one/a few mB fit into the inserted machine, the only extract machine being drained is the priority 0 machine. I used machines from the Mekanism mod. I originally discovered the problem using the mekanism.gas channel from the XNet Gases mod, but the author said the issue applies to xnet.fluid as well.

Steps to reproduce: Place a controller with a red connector next to it. Connect two fluid outputting machines and one fluid accepting machine to the red connector. Add a xnet.fluid channel and set it to priority mode. Extract from one machine with priority 1 and the other with priority 0. Set the accepting machine to insert.

Versions:

Possibly incompatible mods and versions: No coremods

Relevant logs, if any: