Skip to content

Commit

Permalink
Fix templates using Java 8 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel authored Jan 19, 2022
1 parent 13d8e57 commit 1f6ff42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"COMPILE_JAVA_8_ARCH": "\n // The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too\n // JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.\n // We'll use that if it's available, but otherwise we'll use the older option.\n def targetVersion = 8\n if (JavaVersion.current().isJava9Compatible()) {\n options.release = targetVersion\n }",
"COMPILE_JAVA_16_ARCH": " options.release = 16",
"COMPILE_JAVA_17_ARCH": " options.release = 17",
"JAVA_8": "VERSION_8",
"JAVA_8": "VERSION_1_8",
"JAVA_16": "VERSION_16",
"JAVA_17": "VERSION_17",
"FABRIC_LOADER": {
Expand Down Expand Up @@ -213,4 +213,4 @@
}
}
}
}
}

0 comments on commit 1f6ff42

Please sign in to comment.