Make sure the generated data is included in the final jar

This commit is contained in:
Frank 2022-12-09 17:26:13 +01:00
parent d7caa09f5f
commit 7f355dac8e

View file

@ -67,6 +67,17 @@ loom {
} }
} }
sourceSets {
main {
// Add the datagenned files into the jar.
resources {
srcDirs += [
'src/main/generated'
]
}
}
}
dependencies { dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings() mappings loom.officialMojangMappings()