From f53b83350a1c2d3bfc8a3af1cb5c9030c90ab36c Mon Sep 17 00:00:00 2001 From: repo_alt Date: Wed, 10 Nov 2021 13:08:40 +0300 Subject: Fix output hatch locked fluid display for placeable fluids. Fix scanner to report locked fluid even when the hatch is not locked https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/8801 --- src/main/java/gregtech/common/gui/GT_Container_OutputHatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/gregtech/common') diff --git a/src/main/java/gregtech/common/gui/GT_Container_OutputHatch.java b/src/main/java/gregtech/common/gui/GT_Container_OutputHatch.java index 1006acebf1..2e217f6b1e 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_OutputHatch.java +++ b/src/main/java/gregtech/common/gui/GT_Container_OutputHatch.java @@ -116,7 +116,7 @@ public class GT_Container_OutputHatch extends GT_Container_BasicTank { } byte mode = buffer.get(Integer.BYTES); FluidStack tFluid = FluidRegistry.getFluidStack(sb.toString().replace("fluid.", "") - .replace(".name", "").replace("ic2.fluid", "ic2").toLowerCase(), 1); + .replace("tile.", "").replace(".name", "").replace("ic2.fluid", "ic2").toLowerCase(), 1); if (tFluid == null || mode < 8) return "Empty"; else return tFluid.getLocalizedName().replace("fluid.", ""); } -- cgit