Skip to content

Commit

Permalink
Fix Fluid conversion for interactions with tank, fixes non single buc…
Browse files Browse the repository at this point in the history
…ket interactions.
  • Loading branch information
AlgorithmX2 committed Oct 4, 2016
1 parent a3e1c10 commit d74b02e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -439,8 +439,9 @@ public int fill(
int mbUsedUp = leftOver.stackSize;

// round up...
mbUsedUp *= TileEntityBitTank.MB_PER_BIT_CONVERSION;
mbUsedUp += TileEntityBitTank.BITS_PER_MB_CONVERSION - 1;
mbUsedUp *= TileEntityBitTank.MB_PER_BIT_CONVERSION / TileEntityBitTank.BITS_PER_MB_CONVERSION;
mbUsedUp /= TileEntityBitTank.BITS_PER_MB_CONVERSION;

return mbUsedUp;
}
Expand Down

0 comments on commit d74b02e

Please sign in to comment.