Skip to content

Commit

Permalink
rename mods toml in versions above 1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Minecraftschurli committed Apr 30, 2024
1 parent 8e180f4 commit a3d9144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
}

group = "com.github.minecraftschurlimods"
version = "1.11"
version = "1.12"
base.archivesName = "HelperPlugin"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ class HelperPlugin : Plugin<Project> {
}
if (helperExtension.projectType.get() == HelperExtension.Type.MOD) {
val generateModsToml = register<GenerateModsTomlTask>("generateModsToml") {
val mcVer = helperExtension.minecraftVersion.get().split('.')
if (mcVer.size == 2 && mcVer[1].toInt() > 20 || mcVer.size == 3 && (mcVer[1].toInt() > 20 || mcVer[1].toInt() == 20 && mcVer[2].toInt() > 5)) {
modsTomlFile.set(project.layout.buildDirectory.file("generated/modsToml/neoforge.mods.toml"))
}
modsToml.set(project.provider {
val modproperties = helperExtension.modproperties.orNull
val mixins = helperExtension.mixinConfigs.orNull ?: setOf<String>()
Expand Down

0 comments on commit a3d9144

Please sign in to comment.