Skip to content

Commit

Permalink
Use Forge's update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfa-ag committed Nov 26, 2015
1 parent 7001c25 commit 13acb3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/ljfa/tntutils/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
10 changes: 5 additions & 5 deletions src/main/java/ljfa/tntutils/TNTUtils.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 13acb3e

Please sign in to comment.