Skip to content

Commit

Permalink
Add Java 20 to supported list
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Mar 25, 2023
1 parent e20c62e commit 090d31b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Reload the launcher, and it should show up modified versions of Forge, Minecraft
Put the mod jar (`lwjgl3ify-VERSION.jar`) in `mods/` in your instance's minecraft folder, it will get loaded as a coremod.
The forgePatches jar will get automatically downloaded by the launcher.

Change the instance java version to 17.0.6 (or newer) or 19.0.2 (or newer), these are the currently supported versions.
Change the instance java version to 17.0.6 (or newer), 19.0.2 (or newer) or 20 (or newer), these are the currently supported versions.
You can also use Java 11 if you remove the `-Djava.security.manager=allow` argument from `patches/me.eigenraven.lwjgl3ify.forgepatches.json`.

For MultiMC, you need to manually put in extra java arguments, prismlauncher can load them from the patches json files automatically:
Expand Down
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//version: 1679170051
//version: 1679518038
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
Expand Down Expand Up @@ -160,6 +160,14 @@ java {
}
}

tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}

tasks.withType(ScalaCompile).configureEach {
options.encoding = "UTF-8"
}

pluginManager.withPlugin('org.jetbrains.kotlin.jvm') {
// If Kotlin is enabled in the project
kotlin {
Expand Down Expand Up @@ -1014,6 +1022,7 @@ idea {
}
compiler.javac {
afterEvaluate {
javacAdditionalOptions = "-encoding utf8"
moduleJavacAdditionalOptions = [
(project.name + ".main"): tasks.compileJava.options.compilerArgs.collect { '"' + it + '"' }.join(' ')
]
Expand Down
3 changes: 2 additions & 1 deletion prism-libraries/patches/net.minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
11,
17,
18,
19
19,
20
],
"formatVersion": 1,
"libraries": [
Expand Down

0 comments on commit 090d31b

Please sign in to comment.