diff options
author | makamys <makamys@outlook.com> | 2022-06-21 09:21:26 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-21 09:22:34 +0200 |
commit | b043e75245429a2b6ee1402cee826fcec8f7af04 (patch) | |
tree | 32f9e5467abf405d5d435302ac3288a5da2845e1 /src/main/java/makamys/neodymium/Neodymium.java | |
parent | 30fd0a05f82ec32b67fb629f35fd8bdaa3b5101f (diff) | |
download | Neodymium-b043e75245429a2b6ee1402cee826fcec8f7af04.tar.gz Neodymium-b043e75245429a2b6ee1402cee826fcec8f7af04.tar.bz2 Neodymium-b043e75245429a2b6ee1402cee826fcec8f7af04.zip |
Add update check via MCLib
Diffstat (limited to 'src/main/java/makamys/neodymium/Neodymium.java')
-rw-r--r-- | src/main/java/makamys/neodymium/Neodymium.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/Neodymium.java b/src/main/java/makamys/neodymium/Neodymium.java index 2b4ab75..d70330a 100644 --- a/src/main/java/makamys/neodymium/Neodymium.java +++ b/src/main/java/makamys/neodymium/Neodymium.java @@ -14,12 +14,15 @@ import org.lwjgl.input.Keyboard; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.event.FMLConstructionEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import makamys.mclib.core.MCLib; +import makamys.mclib.core.MCLibModules; import makamys.neodymium.renderer.NeoRenderer; import makamys.neodymium.util.SpriteUtil; import net.minecraft.client.Minecraft; @@ -51,8 +54,14 @@ public class Neodymium private static Method ofIsFastRenderMethod; @EventHandler + public void preInit(FMLConstructionEvent event) { + MCLib.init(); + } + + @EventHandler public void preInit(FMLPreInitializationEvent event) { + MCLibModules.updateCheckAPI.submitModTask(MODID, "@UPDATE_URL@"); Config.reloadConfig(); } |