Skip to content

Commit

Permalink
Hotfix setting username via the minecraft extension block
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Feb 15, 2023
1 parent b98b81f commit d313333
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ public MCPTasks(Project project, MinecraftExtension mcExt, MinecraftTasks mcTask
taskPackagePatchedMc,
"jar");

task.getUsername().set(mcExt.getUsername());
task.getUserUUID().set(mcExt.getUserUUID());
task.classpath(taskPackageMcLauncher);
task.classpath(taskPackagePatchedMc);
task.classpath(patchedConfiguration);
Expand All @@ -476,6 +478,8 @@ public MCPTasks(Project project, MinecraftExtension mcExt, MinecraftTasks mcTask
task.setDescription("Runs the deobfuscated server with your mod");
task.dependsOn(launcherSources.getClassesTaskName(), taskPackagePatchedMc, "classes");

task.getUsername().set(mcExt.getUsername());
task.getUserUUID().set(mcExt.getUserUUID());
task.classpath(taskPackageMcLauncher);
task.classpath(taskPackagePatchedMc);
task.classpath(patchedConfiguration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ public MinecraftTasks(Project project, IMinecraftyExtension mcExt) {
task.setGroup(TASK_GROUP_USER);
task.dependsOn(taskDownloadVanillaJars, taskDownloadVanillaAssets);

task.getUsername().set(mcExt.getUsername());
task.getUserUUID().set(mcExt.getUserUUID());
task.getLwjglVersion().set(2);
task.classpath(vanillaClientLocation);
task.classpath(vanillaMcConfiguration);
Expand All @@ -243,6 +245,8 @@ public MinecraftTasks(Project project, IMinecraftyExtension mcExt) {
task.setGroup(TASK_GROUP_USER);
task.dependsOn(taskDownloadVanillaJars);

task.getUsername().set(mcExt.getUsername());
task.getUserUUID().set(mcExt.getUserUUID());
task.getLwjglVersion().set(2);
task.classpath(vanillaServerLocation);
task.getMainClass().set("net.minecraft.server.MinecraftServer");
Expand Down

0 comments on commit d313333

Please sign in to comment.