Skip to content

Commit

Permalink
Use environment variable to set username and uuid on client
Browse files Browse the repository at this point in the history
  • Loading branch information
Swedz committed Dec 12, 2024
1 parent 91df311 commit a5e6dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ neoForge {

gameDirectory.set(project.getLayout().getProjectDirectory().dir('runs/client'))

programArguments.addAll '--username', 'Swedz', '--uuid', 'a2dca537-693e-4ded-ac4b-c4006dd4d382'
if (System.getenv("MC_USERNAME") && System.getenv("MC_UUID")) {
programArguments.addAll '--username', System.getenv("MC_USERNAME"), '--uuid', System.getenv("MC_UUID")
}

systemProperty 'forge.enabledGameTestNamespaces', project.mod_id

Expand Down

0 comments on commit a5e6dac

Please sign in to comment.