Skip to content

Commit

Permalink
Update Sodium dependency, bump version and dep requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Nov 23, 2021
1 parent 99f2fcf commit a1ffa2e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,19 @@ dependencies {
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.

modImplementation "maven.modrinth:sodium:mc1.17.1-0.3.0"
// Use development builds of Sodium on the main branch
if (grgit != null && grgit.branch.current().name.contains("/main")) {
// Note: yarn version must be the same as Indium's dev env
// Jitpack doesn't work with Gradle 7, so this is the easiest solution
implementation("me.jellysquid.mods:sodium-fabric") {
version {
branch = "1.17.x/dev"
}
transitive = false
}
} else {
modImplementation "maven.modrinth:sodium:mc1.17.1-0.3.3"
}

// Transitive dependency of Sodium
implementation("org.joml:joml:1.10.2")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.17.1
yarn_mappings=1.17.1+build.1
loader_version=0.11.6
# Mod Properties
mod_version=1.0.0
mod_version=1.0.1
maven_group=link.infra
archives_base_name=indium
# Dependencies
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"depends": {
"fabricloader": ">=0.8.0",
"minecraft": "1.17.x",
"sodium": "~0.3.0",
"sodium": "~0.3.3",
"fabric-renderer-api-v1": ">=0.3.0"
}
}

0 comments on commit a1ffa2e

Please sign in to comment.