Moved AT to only appear in final build, not in the source code

This commit is contained in:
coolGi
2024-02-19 23:19:53 +10:30
parent 4e6255dc2b
commit 0146d62c2a
3 changed files with 12 additions and 2 deletions
+4
View File
@@ -584,12 +584,16 @@ allprojects { p ->
}
// TODO: Remove this as no loader needs this
// - Fabric can rename which aw they use
// - (Neo)Forge converts the aw to their own at, which is stored at a different place
task copyCommonLoaderResources(type: Copy) {
from project(":common").file("src/main/resources/${accessWidenerVersion}.distanthorizons.accesswidener")
into(file(p.file("build/resources/main")))
rename "${accessWidenerVersion}.distanthorizons.accesswidener", "distanthorizons.accesswidener"
}
// TODO: Remove this later as we no longer need this. We are now including the resources in the processResources section
task copyCoreResources(type: Copy) {
from fileTree(project(":core").file("src/main/resources"))
into p.file("build/resources/main")