Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottKillen committed Jan 17, 2015
2 parents 99f46ad + 412b995 commit 8fd2c04
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Kore Sample
**LATEST OFFICIAL VERSION**: [Kore Sample 1.2.0 for MC 1.7.10][release] ([changelog][changelog.md])
[release]: https://github.com/MinecraftModArchive/KoreSample/releases/download/v1.2.0/KoreSample-1.7.10-1.2.0.jar
**LATEST OFFICIAL VERSION**: [Kore Sample 1.2.1 for MC 1.7.10][release] ([changelog][changelog.md])
[release]: https://github.com/MinecraftModArchive/KoreSample/releases/download/v1.2.1/KoreSample-1.7.10-1.2.1.jar
[changelog.md]: https://github.com/MinecraftModArchive/KoreSample/blob/develop/src/main/resources/CHANGELOG.md

![KoreSample](https://raw.githubusercontent.com/MinecraftModArchive/KoreSample/develop/src/main/resources/assets/logo.png)
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/scottkillen/mod/koresample/TheMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

Expand All @@ -13,11 +14,16 @@ public class TheMod
public static final String MOD_NAME = "Kore Sample";
public static final String MOD_VERSION = "${mod_version}";
private static final String RESOURCE_PREFIX = MOD_ID.toLowerCase() + ':';
private static final String VERSIONCHECK_URL =
"https://raw.githubusercontent.com/ScottKillen/glowing-ninja/master/KoreSample.json";

public static String resourcePrefix() { return RESOURCE_PREFIX; }

@EventHandler
public void onFMLPreInitialization(FMLPreInitializationEvent event) { }
public void onFMLPreInitialization(FMLPreInitializationEvent event)
{
FMLInterModComms.sendRuntimeMessage(MOD_ID, "VersionChecker", "addVersionCheck", VERSIONCHECK_URL);
}

@EventHandler
public void onFMLInitialization(FMLInitializationEvent event) { }
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.1
- Add support for [Version Checker][vc_url].
[vc_url]: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2091981-version-checker-auto-update-mods-and-clean

## 1.2.0
- Added boilerplate for forge event listeners

Expand Down
4 changes: 2 additions & 2 deletions version/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon, 12 Jan 2015 00:59:42 -0500
#Sat, 17 Jan 2015 00:16:26 -0500
mcversion=1.7.10
forgeversion=10.13.2.1235
version_major=1
version_series=2
version_revision=0
version_revision=1

0 comments on commit 8fd2c04

Please sign in to comment.