mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-22 13:19:42 +00:00
Exclude modlauncher services from META-INF
Fixes a (harmless) debug error that happens when services are instantiated
This commit is contained in:
1 parent
abba979a3d
commit
d29d950f3d
1 file changed
+8
-1
@@ -172,7 +172,14 @@ flavors.each {
|
||||
dependsOn "mixinJar$_flavor"
|
||||
dependsOn "bridgeJar$_flavor"
|
||||
|
||||
from zipTree(tasks."mixinJar$_flavor".archiveFile).matching { exclude 'module-info.class' }
|
||||
from zipTree(tasks."mixinJar$_flavor".archiveFile).matching {
|
||||
exclude 'module-info.class'
|
||||
eachFile {
|
||||
if(it.path.startsWith("META-INF/services/")) {
|
||||
it.filter({l -> !l.startsWith("org.spongepowered.asm.service.modlauncher.") ? l : null})
|
||||
}
|
||||
}
|
||||
}
|
||||
from zipTree(tasks."bridgeJar$_flavor".archiveFile).matching { include 'org/spongepowered/asm/bridge/*' }
|
||||
|
||||
doLast {
|
||||
|
||||
Reference in new issue
Block a user