aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAntifluxfield <lyj_299792458@163.com>2017-09-20 00:29:49 +0800
committerGitHub <noreply@github.com>2017-09-20 00:29:49 +0800
commitc40f01930ea256adcdb858e0214deb517989b676 (patch)
tree54076e0ea95fe14c0ec9f84efd2d8650e928068d /src/main
parent73662e531f353013f67ec5de71db77475f33b3a2 (diff)
downloadGT5-Unofficial-c40f01930ea256adcdb858e0214deb517989b676.tar.gz
GT5-Unofficial-c40f01930ea256adcdb858e0214deb517989b676.tar.bz2
GT5-Unofficial-c40f01930ea256adcdb858e0214deb517989b676.zip
Fix #562
Listen to the BlockEvent of Reinforced Glass and trigger the update check.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gregtech/common/GT_Proxy.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java
index c0e1134c6a..09fb87fd25 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
+}