aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java
diff options
context:
space:
mode:
authorBlood Asp <Blood@Asp>2015-04-26 02:04:07 +0200
committerBlood Asp <Blood@Asp>2015-04-26 02:04:07 +0200
commitf1610b1721ed22fcbd4cafb61b0867d8611c00f6 (patch)
tree8261a571accdd074239edd332398c37b01c77258 /main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java
parent6b80bc2d1cb91bc377a0e549bfffaf3fe7ae08c1 (diff)
downloadGT5-Unofficial-f1610b1721ed22fcbd4cafb61b0867d8611c00f6.tar.gz
GT5-Unofficial-f1610b1721ed22fcbd4cafb61b0867d8611c00f6.tar.bz2
GT5-Unofficial-f1610b1721ed22fcbd4cafb61b0867d8611c00f6.zip
Fusion GUI and Distillation Tower
Diffstat (limited to 'main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java')
-rw-r--r--main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java b/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java
index a06cccbe9d..2c062c5d12 100644
--- a/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java
+++ b/main/java/gregtech/api/gui/GT_ContainerMetaTile_Machine.java
@@ -29,6 +29,19 @@ public class GT_ContainerMetaTile_Machine extends GT_Container {
aInventoryPlayer.player.openContainer = aInventoryPlayer.player.inventoryContainer;
}
}
+ public GT_ContainerMetaTile_Machine(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, boolean doesBindInventory){
+ super(aInventoryPlayer, aTileEntity);
+ mTileEntity = aTileEntity;
+
+ if (mTileEntity != null && mTileEntity.getMetaTileEntity() != null) {
+ addSlots(aInventoryPlayer);
+ if (doesBindPlayerInventory()&&doesBindInventory) bindPlayerInventory(aInventoryPlayer);
+ detectAndSendChanges();
+ } else {
+ aInventoryPlayer.player.openContainer = aInventoryPlayer.player.inventoryContainer;
+ }
+ }
+
public int mActive = 0, mMaxProgressTime = 0, mProgressTime = 0, mEnergy = 0, mSteam = 0, mSteamStorage = 0, mStorage = 0, mOutput = 0, mInput = 0, mID = 0, mDisplayErrorCode = 0;
private int oActive = 0, oMaxProgressTime = 0, oProgressTime = 0, oEnergy = 0, oSteam = 0, oSteamStorage = 0, oStorage = 0, oOutput = 0, oInput = 0, oID = 0, oDisplayErrorCode = 0, mTimer = 0;