From c35fcb2fb47c143aab8cc66135794a48d91decff Mon Sep 17 00:00:00 2001 From: Zorbatron <46525467+Zorbatron@users.noreply.github.com> Date: Sun, 19 Jan 2025 15:31:00 -0500 Subject: [PATCH] Fix creative tanks only outputting up to 1kL at a time (#2685) --- .../storage/MetaTileEntityCreativeTank.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityCreativeTank.java b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityCreativeTank.java index fd2cb5e24e5..a40d0b54bf2 100644 --- a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityCreativeTank.java +++ b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityCreativeTank.java @@ -129,11 +129,7 @@ public void update() { if (fluidHandler == null || fluidHandler.getTankProperties().length == 0) return; - FluidStack stack = fluidTank.getFluid().copy(); - int canInsertAmount = fluidHandler.fill(stack, false); - stack.amount = Math.min(mBPerCycle, canInsertAmount); - - fluidHandler.fill(stack, true); + fluidHandler.fill(fluidTank.drain(mBPerCycle, false), true); } }