aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/gui
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2021-03-30 02:22:23 +0800
committerGlease <4586901+Glease@users.noreply.github.com>2021-03-30 02:22:23 +0800
commitae3b94a7c943aa2c393eaf82dfcff8879c0e06af (patch)
treec3b5226474f8054d616739b324f83b2f3b41fef7 /src/main/java/gregtech/api/gui
parente8a9f612f94c01ab857e691e8e6f1b8742a72d18 (diff)
downloadGT5-Unofficial-ae3b94a7c943aa2c393eaf82dfcff8879c0e06af.tar.gz
GT5-Unofficial-ae3b94a7c943aa2c393eaf82dfcff8879c0e06af.tar.bz2
GT5-Unofficial-ae3b94a7c943aa2c393eaf82dfcff8879c0e06af.zip
Only update fluid display items when necessary
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/gui')
-rw-r--r--src/main/java/gregtech/api/gui/GT_Container.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/gui/GT_Container.java b/src/main/java/gregtech/api/gui/GT_Container.java
index 4ce583cff5..671d68b917 100644
--- a/src/main/java/gregtech/api/gui/GT_Container.java
+++ b/src/main/java/gregtech/api/gui/GT_Container.java
@@ -26,6 +26,7 @@ public class GT_Container extends Container {
mTileEntity = aTileEntityInventory;
mPlayerInventory = aPlayerInventory;
+ mTileEntity.openInventory();
}
/**
@@ -468,6 +469,7 @@ public class GT_Container extends Container {
public void onContainerClosed(EntityPlayer par1EntityPlayer) {
try {
super.onContainerClosed(par1EntityPlayer);
+ mTileEntity.closeInventory();
} catch (Throwable e) {
e.printStackTrace(GT_Log.err);
}