Skip to content

Commit

Permalink
Fix version of Java for launching in Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Apr 10, 2024
1 parent 7a3376f commit 433a7ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions worldedit-fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.fabricmc.loom.api.LoomGradleExtensionAPI
import net.fabricmc.loom.configuration.FabricApiExtension
import net.fabricmc.loom.task.RemapJarTask
import net.fabricmc.loom.task.RunGameTask

plugins {
id("fabric-loom")
Expand All @@ -20,6 +21,10 @@ configure<LoomGradleExtensionAPI> {
accessWidenerPath.set(project.file("src/main/resources/worldedit.accesswidener"))
}

tasks.withType<RunGameTask>().configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}

repositories {
maven {
name = "Fabric"
Expand Down

0 comments on commit 433a7ff

Please sign in to comment.