Skip to content

Commit

Permalink
No longer bundled localization files for itemscroller, litematica, ma…
Browse files Browse the repository at this point in the history
…lilib, masa_gadget_mod_minihud_i18n, minihud (MC 1.21+)

Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Oct 15, 2024
1 parent cefb93a commit 172d6cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions versions/1.14.4-fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.util.regex.Matcher
import java.util.regex.Pattern

plugins {
id("maven-publish")

Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 172d6cc

Please sign in to comment.