Update for ForgeSPI change, revert back to VersionStatus checking

This commit is contained in:
ichttt committed 2019-01-27 20:51:35 +01:00
1 parent c2a7fe4019
commit da33233762
4 files changed
+16 -13

No files matched your search

@@ -298,7 +298,8 @@ public class ForgeHooksClient
public static void renderMainMenu(GuiMainMenu gui, FontRenderer font, int width, int height)
{
if (ForgeVersion.getVersion().getMinorVersion() == 0)
VersionChecker.Status status = ForgeVersion.getStatus();
if (status == BETA || status == BETA_OUTDATED)
{
// render a warning at the top of the screen,
String line = I18n.format("forge.update.beta.1", TextFormatting.RED, TextFormatting.RESET);
@@ -308,7 +309,7 @@ public class ForgeHooksClient
}
String line = null;
switch(ForgeVersion.getStatus())
switch(status)
{
//case FAILED: line = " Version check failed"; break;
//case UP_TO_DATE: line = "Forge up to date"}; break;
@@ -36,7 +36,7 @@ public class ForgeVersion
// This is Forge's Mod Id, used for the ForgeMod and resource locations
public static final String MOD_ID = "forge";
private static final ArtifactVersion forgeVersion;
private static final String forgeVersion;
private static final String forgeSpec;
private static final String forgeGroup;
@@ -50,7 +50,7 @@ public class ForgeVersion
if (group == null) {
group = "net.minecraftforge"; // If all else fails, Our normal group
}
forgeVersion = new DefaultArtifactVersion(vers);
forgeVersion = vers;
forgeSpec = spec;
forgeGroup = group;
LOGGER.debug(CORE, "Found Forge version {}", forgeVersion);
@@ -58,7 +58,7 @@ public class ForgeVersion
LOGGER.debug(CORE, "Found Forge group {}", forgeGroup);
}
public static ArtifactVersion getVersion()
public static String getVersion()
{
return forgeVersion;
}