Skip to content

Commit

Permalink
Fixes for several LWJGL issues, there are still ever more
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Feb 3, 2025
1 parent f22ff9f commit 285b846
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ fun Project.provideIncludedDependencies(version: Triple<Int, Int, Int>?, loader:

// Modern (1.16+)
val lwjglBase = "org.lwjgl:lwjgl"
val lwjglVersion = if (version.second in 16..17) "3.3.2" else "3.3.3"
val lwjglVersion = when (version.second) {
in 16..18 -> "3.2.2"
19 -> "3.3.1"
20 -> "3.3.2"
else -> error("Unsupported Minecraft version: ${version.toMCVer()}")
}

deps.add("$lwjglBase-tinyfd:$lwjglVersion")
deps.add("$lwjglBase-nanovg:$lwjglVersion")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name=OneConfig
mod_id=oneconfig
version_major=1
version_minor=0
version_patch=0-alpha.60
version_patch=0-alpha.65

polyfrost.defaults.loom=3

Expand Down
4 changes: 2 additions & 2 deletions modules/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

dependencies {
api(libs.polyui)
implementation(libs.bundles.lwjgl)
compileOnly(libs.bundles.lwjgl)
testImplementation(libs.lwjgl.tinyfd)
api(project(":modules:events"))
compileOnly("org.polyfrost:universalcraft-1.8.9-forge:${libs.versions.universalcraft.get()}")
}
}

0 comments on commit 285b846

Please sign in to comment.