From 1f22e78c051e50df89e9560a28210244a98d2908 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Sat, 19 Mar 2022 03:37:55 +0800 Subject: fix set locked fluid not working via drag n drop (#979) --- src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/gregtech/api/net') diff --git a/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java b/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java index deea71feab..911d48223b 100644 --- a/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java +++ b/src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java @@ -85,7 +85,9 @@ public class GT_Packet_SetLockedFluid extends GT_Packet_New { if (!(mte instanceof GT_MetaTileEntity_Hatch_Output)) return; Fluid tFluid = FluidRegistry.getFluid(mFluidID); if (tFluid == null) return; - ((GT_MetaTileEntity_Hatch_Output) mte).setLockedFluidName(tFluid.getName()); + GT_MetaTileEntity_Hatch_Output hatch = (GT_MetaTileEntity_Hatch_Output) mte; + hatch.setLockedFluidName(tFluid.getName()); + hatch.mMode = 9; GT_Utility.sendChatToPlayer(mPlayer, String.format(GT_LanguageManager.addStringLocalization("Interaction_DESCRIPTION_Index_151.4", "Sucessfully locked Fluid to %s", false), new FluidStack(tFluid, 1).getLocalizedName())); } } -- cgit