Skip to content

Commit

Permalink
erm actually...
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Dec 10, 2023
1 parent fa35baf commit 5ce0307
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,15 @@ dependencies {

tasks {
processResources {
val properties = HashMap<String, Any>()
properties["mod_id"] = mod_id
properties["version"] = version
properties["protocol_version"] = protocol_version
properties["minecraft_version"] = "~$minecraft_version-"

properties["fabric_api_version"] = ">=$fabric_api_version"
properties["frozenlib_version"] = ">=${frozenlib_version.split('-').firstOrNull()}-"
val properties = mapOf(
"mod_id" to mod_id,
"version" to version,
"protocol_version" to protocol_version,
"minecraft_version" to minecraft_version,

"fabric_api_version" to ">=$fabric_api_version",
"frozenlib_version" to ">=${frozenlib_version.split('-').firstOrNull()}-"
)

properties.forEach { (a, b) -> inputs.property(a, b) }

Expand Down

0 comments on commit 5ce0307

Please sign in to comment.