Fix Forge 1.20.4 compiling, but not gradle running

This commit is contained in:
James Seibel
2024-02-04 21:27:22 -06:00
parent b62af66f4b
commit 838d82589b
3 changed files with 19 additions and 2 deletions
+18 -1
View File
@@ -73,4 +73,21 @@ sourcesJar {
// withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
// skip()
// }
//}
//}
// TODO this was specifically added for MC 1.20.4 should it be enabled for anything below MC 1.20.4?
// source: https://github.com/MinecraftForge/MinecraftForge/blob/5d0047753dfac0caaf5d97cc3f5c9a8b0990cb44/mdk/build.gradle#L209-L217
//
// Merge the resources and classes into the same directory.
// This is done because java expects modules to be in a single directory.
// And if we have it in multiple we have to do performance intensive hacks like having the UnionFileSystem
// This will eventually be migrated to ForgeGradle so modders don't need to manually do it. But that is later.
sourceSets.each {
def dir = layout.buildDirectory.dir("sourcesSets/$it.name")
//println "source name " + it.name // as of 2024-2-4 "it.name" only returned "main" and "test"
it.output.resourcesDir = dir
it.java.destinationDirectory = dir
}
+1 -1
View File
@@ -4,7 +4,7 @@ minecraft_version=1.20.4
parchment_version=1.20.2:2023.12.10
compatible_minecraft_versions=["1.20.3", "1.20.4"]
accessWidenerVersion=1_20_2
builds_for=fabric,neoforge
builds_for=fabric,neoforge,forge
# Fabric loader
fabric_loader_version=0.15.1