From 5718613736916ab8435a633e25875e7247b2bbf5 Mon Sep 17 00:00:00 2001 From: Deftu Date: Fri, 12 Jul 2024 17:20:03 +0200 Subject: [PATCH] Fix neoforge.mods.toml not being processed/excluded --- src/main/kotlin/gg/essential/multi-version.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/essential/multi-version.gradle.kts b/src/main/kotlin/gg/essential/multi-version.gradle.kts index 7aa017a..c14d120 100644 --- a/src/main/kotlin/gg/essential/multi-version.gradle.kts +++ b/src/main/kotlin/gg/essential/multi-version.gradle.kts @@ -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") } }