From 485cd0eafb02e84cd33cc9b40421d1de90b5c524 Mon Sep 17 00:00:00 2001 From: Joshua Ball Date: Sat, 18 Jan 2025 16:24:28 -0800 Subject: [PATCH] Fixed stacks of more than one fluid cell. (#29, #30) --- src/main/java/me/towdium/jecalculation/data/label/ILabel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/towdium/jecalculation/data/label/ILabel.java b/src/main/java/me/towdium/jecalculation/data/label/ILabel.java index 1ba91f21..eeb71a1e 100644 --- a/src/main/java/me/towdium/jecalculation/data/label/ILabel.java +++ b/src/main/java/me/towdium/jecalculation/data/label/ILabel.java @@ -284,6 +284,7 @@ public static ILabel from(@Nullable Object item) { if (isGregTechLargeFluidContainer(itemStack)) { FluidStack fluidStack = GTUtility.getFluidForFilledItem(itemStack, true); if (fluidStack != null) { + fluidStack.amount = fluidStack.amount * itemStack.stackSize; return new LFluidStack(fluidStack); } }