Skip to content

Commit

Permalink
Fix creative tanks only outputting up to 1kL at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Dec 20, 2024
1 parent 7141fcf commit 7155ca3
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void update() {
if (fluidHandler == null || fluidHandler.getTankProperties().length == 0)
return;

FluidStack stack = fluidTank.getFluid().copy();
FluidStack stack = fluidTank.getFluid();
int canInsertAmount = fluidHandler.fill(stack, false);
stack.amount = Math.min(mBPerCycle, canInsertAmount);

Expand Down Expand Up @@ -231,5 +231,17 @@ public FluidStack drain(int maxDrain, boolean doDrain) {
public int fill(FluidStack resource, boolean doFill) {
return 0;
}

@Override
public FluidStack getFluid() {
FluidStack fluid = super.getFluid();

if (fluid != null) {
fluid = fluid.copy();
fluid.amount = mBPerCycle;
}

return fluid;
}
}
}

0 comments on commit 7155ca3

Please sign in to comment.