From a4bf54f1b9a1ddf94b2bc3cad969cf6a01209515 Mon Sep 17 00:00:00 2001 From: Kogepan229 <73163994+Kogepan229@users.noreply.github.com> Date: Thu, 20 Mar 2025 19:49:31 +0900 Subject: [PATCH] Fix an issue that GT and AE2FC fluids could not be used with Creative Fluid Cell (#271) --- .../common/storage/CreativeFluidCellInventory.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/glodblock/github/common/storage/CreativeFluidCellInventory.java b/src/main/java/com/glodblock/github/common/storage/CreativeFluidCellInventory.java index fe9fceef..f01c1446 100644 --- a/src/main/java/com/glodblock/github/common/storage/CreativeFluidCellInventory.java +++ b/src/main/java/com/glodblock/github/common/storage/CreativeFluidCellInventory.java @@ -56,14 +56,12 @@ public class CreativeFluidCellInventory extends FluidCellInventory { IInventory inv = this.cellType.getConfigInventory(this.cellItem); for (int i = 0; i < inv.getSizeInventory(); i++) { ItemStack is = inv.getStackInSlot(i); - if (Util.FluidUtil.isFluidContainer(is)) { - FluidStack fs = Util.getFluidFromItem(is); - if (fs == null) continue; - IAEFluidStack iaeFluidStack = Util.FluidUtil.createAEFluidStack(fs); - if (this.cellFluids.findPrecise(iaeFluidStack) == null) { - iaeFluidStack.setStackSize(Integer.MAX_VALUE * 1_000_000L); - this.cellFluids.add(iaeFluidStack); - } + FluidStack fs = Util.getFluidFromItem(is); + if (fs == null) continue; + IAEFluidStack iaeFluidStack = Util.FluidUtil.createAEFluidStack(fs); + if (this.cellFluids.findPrecise(iaeFluidStack) == null) { + iaeFluidStack.setStackSize(Integer.MAX_VALUE * 1_000_000L); + this.cellFluids.add(iaeFluidStack); } } }