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.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottKillen committed Jun 27, 2015
2 parents 685bf36 + 20f2ecd commit 8f8f140
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 28 deletions.
6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Kore Sample
**LATEST OFFICIAL VERSION**: [Kore Sample 1.3.1 for MC 1.7.10][latest] ([changelog][changelog.md]) ([all
**LATEST OFFICIAL VERSION**: [Kore Sample 1.3.2 for MC 1.7.10][latest] ([changelog][changelog.md]) ([all
releases][releases])

[latest]: http://scottk.us/KoreSampleMod
Expand Down
29 changes: 5 additions & 24 deletions src/main/java/com/scottkillen/mod/koresample/TheMod.java
Original file line number Diff line number Diff line change
@@ -1,45 +1,26 @@
package com.scottkillen.mod.koresample;

import com.scottkillen.mod.koresample.compat.versionchecker.Versioned;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

@SuppressWarnings({
"StaticNonFinalField",
"WeakerAccess",
"StaticVariableMayNotBeInitialized",
"NonConstantFieldWithUpperCaseName",
"MethodMayBeStatic"
"NonConstantFieldWithUpperCaseName", "UtilityClass",
"UtilityClassWithoutPrivateConstructor"
})
@Mod(modid = TheMod.MOD_ID, name = TheMod.MOD_NAME, version = TheMod.MOD_VERSION, useMetadata = true)
public final class TheMod implements Versioned
public final class TheMod
{
static final String MOD_ID = "koresample";
static final String MOD_NAME = "Kore Sample";
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";

@Instance(MOD_ID)
public static TheMod INSTANCE;

@SuppressWarnings("unused")
public static String resourcePrefix() { return RESOURCE_PREFIX; }

@EventHandler
public void onFMLPreInitialization(FMLPreInitializationEvent event) { addVersionCheck(this); }

public void addVersionCheck(Versioned versionCheck)
{
FMLInterModComms.sendRuntimeMessage(versionCheck.modID(), "VersionChecker", "addVersionCheck",
versionCheck.versionInfoURL());
}

@Override
public String modID() { return MOD_ID; }

@Override
public String versionInfoURL() { return VERSIONCHECK_URL; }
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.scottkillen.mod.koresample.compat.versionchecker;

@Deprecated
public interface Versioned
{
String modID();
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Kore Sample Changelog

## 1.3.2
- Removed broken VersionChecker support.

## 1.3.1
- Fixed NEI reporting (non-crash) exception even when all is OK
- Fixed NEI reporting (non-crash) exception even when all is OK.

## 1.3.0
- Changed logo.
Expand Down
4 changes: 2 additions & 2 deletions version/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Sat, 27 Jun 2015 17:24:29 -0400
#Sat, 27 Jun 2015 17:51:35 -0400
version_mc=1.7.10
version_forge=10.13.4.1448

version_major=1
version_series=3
version_revision=1
version_revision=2

0 comments on commit 8f8f140

Please sign in to comment.