aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2023-01-02 16:22:37 +0800
committerGitHub <noreply@github.com>2023-01-02 09:22:37 +0100
commite30abbb03c2af80a00d2036808d3125c58331b19 (patch)
tree40be9db1033b6b3a1cbf3f0b49ad85ea504e58fd /src/main/java/gregtech/common
parent744834083d4504108be1715d36acd94d71c31a84 (diff)
downloadGT5-Unofficial-e30abbb03c2af80a00d2036808d3125c58331b19.tar.gz
GT5-Unofficial-e30abbb03c2af80a00d2036808d3125c58331b19.tar.bz2
GT5-Unofficial-e30abbb03c2af80a00d2036808d3125c58331b19.zip
add callhook for pre block destroy (#1625)
* add callhook for pre block destroy Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * spotless Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Machines.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
index 3aeb2f0a5e..d176fd26a3 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
@@ -410,6 +410,7 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo
final TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
if (tTileEntity instanceof IGregTechTileEntity) {
final IGregTechTileEntity tGregTechTileEntity = (IGregTechTileEntity) tTileEntity;
+ tGregTechTileEntity.onBlockDestroyed();
mTemporaryTileEntity.set(tGregTechTileEntity);
if (!(tGregTechTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_QuantumChest)) {
for (int i = 0; i < tGregTechTileEntity.getSizeInventory(); i++) {