Skip to content

Commit 839d286

Browse files
committed
assets include in distribution
1 parent c5775e0 commit 839d286

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,15 @@ for (def dist : ['Client', 'Server']) {
572572
}
573573
}
574574

575+
// carpet mod assets
576+
from(zipTree('projects/' + settings.modname + '/build/libs/' + settings.modname + '.jar')) {
577+
eachFile { moddedFile ->
578+
def entryName = moddedFile.getRelativePath().toString()
579+
if (!entryName.startsWith('assets/carpet'))
580+
moddedFile.exclude()
581+
}
582+
}
583+
575584
// json registry and lang file in world edit
576585
projectMod.configurations.extraLibs.each {file ->
577586
from(zipTree(file)) {

0 commit comments

Comments
 (0)