mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-20 11:09:43 +00:00
Fix Submodule Resources
This commit is contained in:
1 parent
37b7290680
commit
6fa5f1c366
1 file changed
+6
-1
@@ -178,7 +178,7 @@ def isInjectedClass = { String classPath ->
|
||||
}
|
||||
|
||||
def isInjectedResource = { String resPath ->
|
||||
injectedResDirs.any { new File(it, resPath).exists() }
|
||||
injectedResDirs.any { def f = new File(it, resPath); f.exists() && f.isFile() }
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
@@ -191,6 +191,11 @@ def isInjectedResource = { String resPath ->
|
||||
jar {
|
||||
includeEmptyDirs = false
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
// Ensure processed resources (including assets/) are included in the jar.
|
||||
// The GTNH convention plugin may not include them from processResources output.
|
||||
from("$buildDir/resources/main")
|
||||
|
||||
exclude { details ->
|
||||
def path = details.relativePath.pathString
|
||||
if (path == 'mcmod.info') return false // keep merged mcmod.info
|
||||
|
||||
Reference in new issue
Block a user