From c40f01930ea256adcdb858e0214deb517989b676 Mon Sep 17 00:00:00 2001 From: Antifluxfield Date: Wed, 20 Sep 2017 00:29:49 +0800 Subject: [PATCH] Fix #562 Listen to the BlockEvent of Reinforced Glass and trigger the update check. --- src/main/java/gregtech/common/GT_Proxy.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index c0e1134c..09fb87fd 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -1888,5 +1888,11 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler { } } + @SubscribeEvent + public void onBlockEvent(BlockEvent event) { + if (event.block.getUnlocalizedName().equals("blockAlloyGlass")) + GregTech_API.causeMachineUpdate(event.world, event.x, event.y, event.z); + } -} \ No newline at end of file + +}