automatically copy lod.accesswidener when building

By default the fabric build folder needs this file to run, but it wasn't being copied over, now it should be.
This commit is contained in:
James Seibel
2022-04-02 23:08:33 -05:00
parent 07c53a02ca
commit 7dadff4219
+12
View File
@@ -203,6 +203,18 @@ allprojects { p ->
runClient.enabled = false
runServer.enabled = false
}
// this is necessary for running the fabric build
if (p == project(":common")) {
println "Coping [common/src/main/resources/lod.accesswidner] to [fabric/build/resources/main]."
copy {
from "$rootProject.rootDir/common/src/main/resources"
into "$rootProject.rootDir/fabric/build/resources/main"
include "*.accesswidener"
}
}
}