Skip to content

Commit

Permalink
multi-version: Fix neoforge.mods.toml not being processed/excluded
Browse files Browse the repository at this point in the history
GitHub: #22
  • Loading branch information
Deftu authored Aug 5, 2024
1 parent 7c26901 commit 958c8ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/gg/essential/multi-version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ fun configureResources() {
// TODO is this required? are the FileCopyDetails not part of the input already?
inputs.property("mod_version_expansions", expansions)

filesMatching(listOf("mcmod.info", "META-INF/mods.toml", "fabric.mod.json")) {
filesMatching(listOf("mcmod.info", "META-INF/mods.toml", "META-INF/neoforge.mods.toml", "fabric.mod.json")) {
expand(expansions)
}

// And exclude mod metadata files for other platforms
if (!platform.isFabric) exclude("fabric.mod.json")
if (!platform.isModLauncher) exclude("META-INF/mods.toml")
if (!platform.isNeoForge) exclude("META-INF/neoforge.mods.toml")
if (!platform.isLegacyForge) exclude("mcmod.info")
}
}
Expand Down

0 comments on commit 958c8ef

Please sign in to comment.