diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-01-10 18:06:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 11:06:00 +0100 |
commit | 42e949f74aef39c9bc6d3cfb01505226844738a3 (patch) | |
tree | 1450dacab65bb1e2f9225d4d94543cc74cfbca7e /src | |
parent | bef0bf37ddb79da70803321069287d1dd9050623 (diff) | |
download | GT5-Unofficial-42e949f74aef39c9bc6d3cfb01505226844738a3.tar.gz GT5-Unofficial-42e949f74aef39c9bc6d3cfb01505226844738a3.tar.bz2 GT5-Unofficial-42e949f74aef39c9bc6d3cfb01505226844738a3.zip |
data access hatch now proactively update data sticks (#861)
this is to combat the problem of TT data bank pushing not updated sticks as ghost item into assline, which then constantly reupdate said sticks. with this change even data sticks in TT data bank will update.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DataAccess.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DataAccess.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DataAccess.java index 2faf113e18..a2971e0e86 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DataAccess.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DataAccess.java @@ -8,6 +8,7 @@ import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.render.TextureFactory; +import gregtech.api.util.GT_AssemblyLineUtils; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; @@ -122,4 +123,10 @@ public class GT_MetaTileEntity_Hatch_DataAccess extends GT_MetaTileEntity_Hatch getBaseMetaTileEntity().setActive(mActive); timeout=mActive?4:0; } + + @Override + public void setInventorySlotContents(int aIndex, ItemStack aStack) { + super.setInventorySlotContents(aIndex, aStack); + GT_AssemblyLineUtils.processDataStick(aStack); + } } |