Fixed run configs generating incorrect run dir

This commit is contained in:
Jared 2021-09-29 21:39:33 +02:00
parent f6447facaf
commit 4566e7b45a
No known key found for this signature in database
GPG Key ID: DB3BA3B9088A1BDF
2 changed files with 8 additions and 2 deletions

View File

@ -14,8 +14,12 @@ minecraft {
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') {}
server(project.hasProperty('common_server_run_name') ? project.findProperty('common_server_run_name') : 'vanilla_server') {
workingDirectory(this.file("run"))
}
client(project.hasProperty('common_client_run_name') ? project.findProperty('common_client_run_name') : 'vanilla_client') {
workingDirectory(this.file("run"))
}
}
}
}

View File

@ -23,11 +23,13 @@ loom {
client()
setConfigName("Fabric Client")
ideConfigGenerated(true)
runDir("${this.name}/run")
}
server {
server()
setConfigName("Fabric Server")
ideConfigGenerated(true)
runDir("${this.name}/run")
}
}
}