Bump version info. Rather important.

This commit is contained in:
LexManos 2016-03-09 14:52:32 -08:00
parent 90b2c86a9f
commit e4da09df2a
2 changed files with 9 additions and 13 deletions

View file

@ -31,17 +31,17 @@ import net.minecraftforge.fml.common.versioning.ComparableVersion;
public class ForgeVersion public class ForgeVersion
{ {
//This number is incremented every time we remove deprecated code/major API changes, never reset //This number is incremented every time we remove deprecated code/major API changes, never reset
public static final int majorVersion = 11; public static final int majorVersion = 12;
//This number is incremented every minecraft release, never reset //This number is incremented every minecraft release, never reset
public static final int minorVersion = 15; public static final int minorVersion = 16;
//This number is incremented every time a interface changes or new major feature is added, and reset every Minecraft version //This number is incremented every time a interface changes or new major feature is added, and reset every Minecraft version
public static final int revisionVersion = 1; public static final int revisionVersion = 0;
//This number is incremented every time Jenkins builds Forge, and never reset. Should always be 0 in the repo code. //This number is incremented every time Jenkins builds Forge, and never reset. Should always be 0 in the repo code.
public static final int buildVersion = 0; public static final int buildVersion = 0;
// This is the minecraft version we're building for - used in various places in Forge/FML code // This is the minecraft version we're building for - used in various places in Forge/FML code
public static final String mcVersion = "1.8.9"; public static final String mcVersion = "1.9";
// This is the MCP data version we're using // This is the MCP data version we're using
public static final String mcpVersion = "9.19"; public static final String mcpVersion = "9.23";
@SuppressWarnings("unused") @SuppressWarnings("unused")
private static Status status = PENDING; private static Status status = PENDING;
@SuppressWarnings("unused") @SuppressWarnings("unused")
@ -239,16 +239,12 @@ public class ForgeVersion
} }
// Gather a list of mods that have opted in to this update system by providing a URL. // Gather a list of mods that have opted in to this update system by providing a URL.
// Small hack needed to support a interface change until we force a recompile.
public static Map<ModContainer, URL> gatherMods() public static Map<ModContainer, URL> gatherMods()
{ {
Map<ModContainer, URL> ret = new HashMap<ModContainer, URL>(); Map<ModContainer, URL> ret = new HashMap<ModContainer, URL>();
for (ModContainer mod : Loader.instance().getActiveModList()) for (ModContainer mod : Loader.instance().getActiveModList())
{ {
URL url = null; URL url = mod.getUpdateUrl();
try {
url = mod.getUpdateUrl();
} catch (AbstractMethodError abs) { } //TODO: Remove this in 1.8.8+?
if (url != null) if (url != null)
ret.put(mod, url); ret.put(mod, url);
} }

View file

@ -113,7 +113,7 @@ import com.google.gson.JsonParser;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public class Loader public class Loader
{ {
public static final String MC_VERSION = "1.8.9"; public static final String MC_VERSION = net.minecraftforge.common.ForgeVersion.mcVersion;
private static final Splitter DEPENDENCYPARTSPLITTER = Splitter.on(":").omitEmptyStrings().trimResults(); private static final Splitter DEPENDENCYPARTSPLITTER = Splitter.on(":").omitEmptyStrings().trimResults();
private static final Splitter DEPENDENCYSPLITTER = Splitter.on(";").omitEmptyStrings().trimResults(); private static final Splitter DEPENDENCYSPLITTER = Splitter.on(";").omitEmptyStrings().trimResults();
/** /**