Skip to content

Commit

Permalink
add tier correspondance for machine fluid autooutput
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreySolodovnikov committed Aug 18, 2021
1 parent 7bcf3a6 commit 6263c88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ else if (mOutputFluid.isFluidEqual(getDrainableStack()))
if (doesAutoOutputFluids() && getDrainableStack() != null && aBaseMetaTileEntity.getFrontFacing() != mMainFacing && (tSucceeded || aTick % 20 == 0)) {
IFluidHandler tTank = aBaseMetaTileEntity.getITankContainerAtSide(aBaseMetaTileEntity.getFrontFacing());
if (tTank != null) {
FluidStack tDrained = drain(1000, false);
FluidStack tDrained = drain((int) Math.pow(1.5, mTier), false);
if (tDrained != null) {
int tFilledAmount = tTank.fill(ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()), tDrained, false);
if (tFilledAmount > 0)
Expand Down

1 comment on commit 6263c88

@Pilad
Copy link
Contributor

@Pilad Pilad commented on 6263c88 Aug 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На лв оно по 1 по литру в секунду выплевывает. Точно правильно написал?
Math.pow это возведение в степень же. 1,5 * 1,5 = 2,25л/с

Please sign in to comment.