MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
509 stars 437 forks source link

[FG5] Use MCPConfig java_target to select JRE for running MCPFunctions #805

Closed shartte closed 3 years ago

shartte commented 3 years ago

Use the Java version that MCPConfig targets to run the MCPConfig functions, instead of the JRE that hosts Gradle.

This should fix J16 being used to decompile 1.16.5 (the decompiler seems to have issues with this), if Gradle itself is running under J16.

Fixes #804