Fluid Duplication
sharkweekthings opened this issue ยท 2 comments
Describe the bug
This is an issue with pneumaticcraft-repressurized-1.19.2-4.3.14-49 and supplementaries-1.19.2-2.4.20.
Will duplicate when poured into a tank using a Supplementaries faucet.
I dont think this is a problem with the faucet itself, but I can report it on their git as well? I figured this was a better place to start.
How to reproduce the bug
using an air compressor, thermopneumatic processing plant, 2 tanks, and a faucet.
Expected behavior
fluid should properly be consumed from the processing plant and placed into the tank.
Additional details
No response
Which Minecraft version are you using?
1.19
Which version of PneumaticCraft: Repressurized are you using?
pneumaticcraft-repressurized-1.19.2-4.3.14-49
Crash log
No response
This is absolutely a problem with the Faucet, which is misusing the forge IFluidHandler API. The faucet is extracting an arbitrary tank from the fluid handler it gets and extracting from that. The arbitrary tank is picks is tank 0, the input tank.
The correct way to do this is to call drain()
directly on the fluid handler itself, not mess about with the tank internals.