From 13acb3e7a6b1bc0159a26b5412722d21de6f608e Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 26 Nov 2015 10:38:24 +0100 Subject: [PATCH] Use Forge's update checker --- src/main/java/ljfa/tntutils/Reference.java | 1 + src/main/java/ljfa/tntutils/TNTUtils.java | 10 +++++----- version.json | 6 ++++++ 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 version.json diff --git a/src/main/java/ljfa/tntutils/Reference.java b/src/main/java/ljfa/tntutils/Reference.java index 0883690..a370a41 100644 --- a/src/main/java/ljfa/tntutils/Reference.java +++ b/src/main/java/ljfa/tntutils/Reference.java @@ -7,4 +7,5 @@ public class Reference { public static final String CLIENT_PROXY_CLASS = "ljfa.tntutils.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "ljfa.tntutils.proxy.CommonProxy"; public static final String GUI_FACTORY_CLASS = "ljfa.tntutils.gui.TntuGuiFactory"; + public static final String UPDATE_JSON = "https://raw.githubusercontent.com/ljfa-ag/TNTUtils/mc1.8.8/version.json"; } diff --git a/src/main/java/ljfa/tntutils/TNTUtils.java b/src/main/java/ljfa/tntutils/TNTUtils.java index 24bd2f7..5b7ad9d 100644 --- a/src/main/java/ljfa/tntutils/TNTUtils.java +++ b/src/main/java/ljfa/tntutils/TNTUtils.java @@ -1,5 +1,9 @@ package ljfa.tntutils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.apache.logging.log4j.message.StringFormatterMessageFactory; + import ljfa.tntutils.command.CommandExplosion; import ljfa.tntutils.proxy.CommonProxy; import net.minecraft.block.Block; @@ -12,13 +16,9 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.event.FMLServerStartedEvent; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; -import org.apache.logging.log4j.message.StringFormatterMessageFactory; - @Mod(modid = Reference.MODID, name = Reference.MODNAME, version = Reference.VERSION, acceptableRemoteVersions = "*", guiFactory = Reference.GUI_FACTORY_CLASS, dependencies = "required-after:tnt_utilities_core", - acceptedMinecraftVersions = "1.8.8") + acceptedMinecraftVersions = "1.8.8", updateJSON = Reference.UPDATE_JSON) public class TNTUtils { @Mod.Instance(Reference.MODID) public static TNTUtils instance; diff --git a/version.json b/version.json new file mode 100644 index 0000000..d0ecf2c --- /dev/null +++ b/version.json @@ -0,0 +1,6 @@ +{ + "homepage": "http://www.curse.com/mc-mods/minecraft/227449-tntutils#t1:other-downloads", + "promos": { + "1.8.8-latest": "1.1.1-beta" + } +}