We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3066dc4 commit bacbfd0Copy full SHA for bacbfd0
1 file changed
game/build.gradle.kts
@@ -120,16 +120,22 @@ distributions {
120
from(tasks["shadowJar"])
121
122
val emptyDirs = setOf("cache", "saves")
123
- val configs =
+ val data =
124
parent!!
125
.rootDir
126
.resolve("data")
127
- .list()!!
128
- .toMutableList()
129
- configs.removeAll(emptyDirs)
130
- for (config in configs) {
131
- from("../data/$config/") {
132
- into("data/$config")
+ for (config in data.list()) {
+ if (emptyDirs.contains(config) || config == ".temp") {
+ continue
+ }
+ if (config.contains(".")) {
+ from("../data/$config") {
133
+ into("data")
134
135
+ } else {
136
+ from("../data/$config/") {
137
+ into("data/$config")
138
139
}
140
141
for (dir in emptyDirs) {
0 commit comments