aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java')
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java b/src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java
new file mode 100644
index 0000000000..cb83a4974d
--- /dev/null
+++ b/src/main/java/pers/gwyog/gtneioreplugin/event/ClientTickHandler.java
@@ -0,0 +1,19 @@
+package pers.gwyog.gtneioreplugin.event;
+
+import cpw.mods.fml.common.eventhandler.SubscribeEvent;
+import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
+import pers.gwyog.gtneioreplugin.util.GTOreLayerHelper;
+import pers.gwyog.gtneioreplugin.util.GTSmallOreHelper;
+
+public class ClientTickHandler {
+ public boolean hasInitialized = false;
+
+ @SubscribeEvent
+ public void onTick(ClientTickEvent event) {
+ if (!hasInitialized) {
+ new GTOreLayerHelper();
+ new GTSmallOreHelper();
+ hasInitialized = true;
+ }
+ }
+}