1
0
mirror of https://github.com/chylex/Java-Checker.git synced 2025-07-24 02:59:01 +02:00

Quick fix

This commit is contained in:
chylex 2015-02-07 21:07:18 +01:00
parent af3b291fdc
commit be88acdae9
2 changed files with 4 additions and 4 deletions
build.gradle
src/main/java/chylex/javacheck/report

View File

@ -19,7 +19,7 @@ apply plugin: 'forge'
version = "" version = ""
group = "chylex.java7check" group = "chylex.java7check"
archivesBaseName = "Java7Checker MC-1.8 v1.1" archivesBaseName = "Java7Checker MC-1.8+ v1.1"
minecraft { minecraft {
version = "1.8-11.14.1.1306" version = "1.8-11.14.1.1306"
@ -40,7 +40,7 @@ task java8Jar(type: Jar, dependsOn: "jar") {
attributes 'FMLCorePlugin': 'chylex.javacheck.Java8CheckerCoremod' attributes 'FMLCorePlugin': 'chylex.javacheck.Java8CheckerCoremod'
} }
baseName = "Java8Checker MC-1.8 v1.1" baseName = "Java8Checker MC-1.8+ v1.1"
} }
reobf { reobf {

View File

@ -26,7 +26,7 @@ public final class JavaCheckerReporter implements IFMLCallHook{
static String getConsoleReport(){ static String getConsoleReport(){
return new StringBuilder(242).append("\n") return new StringBuilder(242).append("\n")
.append("\n!! DO NOT REPORT !!\n\n") .append("\n!! DO NOT REPORT !!\n\n")
.append("One of the mods requires Java 1.7 or newer, you are using ").append(SystemUtils.JAVA_VERSION).append(".\n") .append("One of the mods requires Java "+minVersion.toString()+" or newer, you are using ").append(SystemUtils.JAVA_VERSION).append(".\n")
.append("Visit https://java.com/download/ for the latest version.\n") .append("Visit https://java.com/download/ for the latest version.\n")
.append("Please, uninstall the old version first to prevent further issues.") .append("Please, uninstall the old version first to prevent further issues.")
.append("\n\n!! DO NOT REPORT !!\n") .append("\n\n!! DO NOT REPORT !!\n")
@ -35,7 +35,7 @@ public final class JavaCheckerReporter implements IFMLCallHook{
static String getWindowReport(){ static String getWindowReport(){
return new StringBuilder(230) return new StringBuilder(230)
.append("One of the mods requires Java 1.7 or newer, you are using ").append(SystemUtils.JAVA_VERSION).append(".<br>") .append("One of the mods requires Java "+minVersion.toString()+" or newer, you are using ").append(SystemUtils.JAVA_VERSION).append(".<br>")
.append("Visit <span style=\"color:red\">https://java.com/download/</span> for the latest version.<br>") .append("Visit <span style=\"color:red\">https://java.com/download/</span> for the latest version.<br>")
.append("Please, uninstall the old version first to prevent further issues.") .append("Please, uninstall the old version first to prevent further issues.")
.toString(); .toString();