StarsPath / IndustrialRenewal_Port

Other
3 stars 3 forks source link

[Bug] Fluid pipe and Mekanism pipe interaction #2

Closed StarsPath closed 2 years ago

StarsPath commented 2 years ago

Description: When using Mekanism fluid pipe to extract fluid and insert into IR fluid pipes, it will leave 1mb fluid in the IR pipe.

Reproduce:

  1. have a tank on both side
  2. have IR fluid pipes connect between the tanks
  3. have 1 Mekanism fluid pipe extract to the IR pipes
  4. fill tank with fluid

Expected: the entire content of one tank is transferred to the other

Actual result: 999mb was transferred to the tank, 1 mb remain in the IR pipes

StarsPath commented 2 years ago

Possible Cause: Integer rounding. 1000 mb was split into 2 valid outputs. 2 500mb. 500mb for tank and Mkism Pipe. Mkism Pipe inserts 500mb back to IR pipe -> 2 250mb -> 2 125mb -> 2 62.5mb (rounds to 62) -> … -> 1 mb. 1 mb cannot be split or filled anywhere.