Skip to content

Commit

Permalink
fix mod metadata and make yacl optional
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Oct 19, 2024
1 parent 3634f4d commit f1bf3ea
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
15 changes: 7 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ tasks {

props.forEach(inputs::property)

(if (isFabric) listOf("fabric.mod.json") else listOf(
"META-INF/mods.toml",
"META-INF/neoforge.mods.toml"
)).forEach { filesMatching(it) { expand(props) } }

filesMatching("pack.mcmeta") {
if (isFabric) exclude()
if (isFabric) {
filesMatching("fabric.mod.json") { expand(props) }
exclude(listOf("META-INF/mods.toml", "META-INF/neoforge.mods.toml", "pack.mcmeta"))
} else {
filesMatching(listOf("META-INF/mods.toml", "META-INF/neoforge.mods.toml")) { expand(props) }
exclude("fabric.mod.json")
}
}

Expand Down Expand Up @@ -177,7 +176,7 @@ publishMods {
requires { slug = "fabric-api" }
requires { slug = "fabric-language-kotlin" }
optional { slug = "modmenu" }
if (stonecutter.compare(mcVersion, "1.20.1") >= 0) requires { slug = "yacl" }
if (stonecutter.compare(mcVersion, "1.20.1") >= 0) optional { slug = "yacl" }
} else {
requires { slug = "kotlin-lang-forge" }
}
Expand Down
7 changes: 2 additions & 5 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
- migrate to kotlin-lang-forge
- migrate all network namespaces from 'better-boat-movement' to 'bbm'
- remove config from forge environments
- improve boostOnIce description
- set boostOnIce by default to false to prevent issues with getting boosted on different blocks than ice
- fix mod metadata resource insertion
- make yacl optional from now on
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ mod.id=bbm
mod.name=BetterBoatMovement
mod.description=Increases boat step height to move up water and blocks
mod.beta=0
mod.major-version=2.2.5
mod.major-version=2.2.6
mod.mixins=bbm.mixins.json
mod.supported-loaders=fabric,quilt,neoforge,forge
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"depends": {
"fabric-language-kotlin": ">=${flk}",
"fabric-api": ">=${fapi}",
"yet_another_config_lib_v3": ">=${yacl}",
"minecraft": "${mc}"
},
"suggests": {
"yet_another_config_lib_v3": ">=${yacl}",
"modmenu": "${modmenu}"
},
"entrypoints": {
Expand Down

0 comments on commit f1bf3ea

Please sign in to comment.