aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/net
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-03-19 03:37:55 +0800
committerGitHub <noreply@github.com>2022-03-18 20:37:55 +0100
commit1f22e78c051e50df89e9560a28210244a98d2908 (patch)
treed37e73b0136849e578706fcf76d642560b71607c /src/main/java/gregtech/api/net
parentcf37ec820c87523fd4575f9391d9fe50549824d6 (diff)
downloadGT5-Unofficial-1f22e78c051e50df89e9560a28210244a98d2908.tar.gz
GT5-Unofficial-1f22e78c051e50df89e9560a28210244a98d2908.tar.bz2
GT5-Unofficial-1f22e78c051e50df89e9560a28210244a98d2908.zip
fix set locked fluid not working via drag n drop (#979)
Diffstat (limited to 'src/main/java/gregtech/api/net')
-rw-r--r--src/main/java/gregtech/api/net/GT_Packet_SetLockedFluid.java4
1 files changed, 3 insertions, 1 deletions
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()));
}
}