Rename the VanillaGradle runs to vanilla_client and vanilla_server. These can be renamed or disabled via properties.

This commit is contained in:
Tyler Hancock 2021-09-27 23:31:03 -06:00
parent fe1bccafbf
commit 4b0dae67f9
No known key found for this signature in database
GPG Key ID: D10D32949D03E695

View File

@ -13,8 +13,11 @@ repositories {
minecraft {
version(minecraft_version)
runs {
server()
client()
runs {
if (project.hasProperty('common_runs_enabled') ? project.findProperty('common_runs_enabled').toBoolean() : true) {
server(project.hasProperty('common_server_run_name') ? project.findProperty('common_server_run_name') : 'vanilla_server') {}
client(project.hasProperty('common_client_run_name') ? project.findProperty('common_client_run_name') : 'vanilla_client') {}
}
}
}