View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001514||Industrial-Craft²||machines||public||2015-01-17 08:41||2015-01-17 12:12|
|Product Version||Builds for MC 1.7.10|
|Target Version||Fixed in Version|
|Summary||0001514: Fluid Distributors can get jammed|
|Description||If a Fluid distributor is set to distribute between two distributors set to concentrate, when the first is fed 1mB of a fluid it can potentially jam the other two (ones set to concentrate) with '0mB' of the fluid, only way to fix is to break the two jammed distributors.|
|Tags||No tags attached.|
||Gah, rounding errors. I expect it's ended up with 0.5mB in both, but fluid's stored as an int.|
yea, you're not supposed to blindly divide ints for that very reason, essentially you should check if it's dividable by the required factor (key; mod op), take the remainder out out and divide the result provided it's still > 0, then re-add the remainder back in either in the tank or to any of the outputs.
probably should be an option to change whether it keeps or outputs the remainder, I see both being used, distilled water from a cold steam gen and when you want a perfect balance are examples of each.