From 172d6cc34c221daab28fa6b04315e0ae30680d6b Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Tue, 15 Oct 2024 18:20:22 +0800 Subject: [PATCH] No longer bundled localization files for itemscroller, litematica, malilib, masa_gadget_mod_minihud_i18n, minihud (MC 1.21+) Signed-off-by: Hendrix-Shen --- versions/1.14.4-fabric/build.gradle | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/versions/1.14.4-fabric/build.gradle b/versions/1.14.4-fabric/build.gradle index 3778258..3054c0f 100644 --- a/versions/1.14.4-fabric/build.gradle +++ b/versions/1.14.4-fabric/build.gradle @@ -1,3 +1,6 @@ +import java.util.regex.Matcher +import java.util.regex.Pattern + plugins { id("maven-publish") @@ -299,6 +302,24 @@ replaceToken { processResources { outputs.upToDateWhen { false } + [ + ["itemscroller" , mcVersion > 12006], + ["litematica" , mcVersion > 12006], + ["malilib" , mcVersion > 12006], + ["masa_gadget_mod_minihud_i18n", mcVersion > 12006], + ["minihud" , mcVersion > 12006], + ["tweakeroo" , false], + ].forEach { item -> + String identifier = item[0] + boolean shouldExclude = item[1] + + if (shouldExclude) { + filesMatching("assets/${identifier}/lang/*.json") { + exclude() + } + } + } + [ "fabric.mod.json" : ["fabric"], "META-INF" : ["forge", "neoforge"],