Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 1, 2024
1 parent 46172f3 commit eebbfd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public Obfuscation(Project project,
}

@ApiStatus.Internal
public void configureSrgToNamedOperation(RemapOperation operation) {
public void configureNamedToSrgOperation(RemapOperation operation) {
operation.getToolType().set(RemapOperation.ToolType.ART);
operation.getToolClasspath().from(autoRenamingToolRuntime);
operation.getMappings().from(officialToSrg);
}

@ApiStatus.Internal
public void configureNamedToSrgOperation(RemapOperation operation) {
public void configureSrgToNamedOperation(RemapOperation operation) {
operation.getToolType().set(RemapOperation.ToolType.INSTALLER_TOOLS);
operation.getToolClasspath().from(installerToolsRuntime);
operation.getMappings().from(mappingsCsv);
Expand All @@ -76,7 +76,7 @@ public TaskProvider<RemapJar> reobfuscate(TaskProvider<? extends AbstractArchive
task.getArchiveClassifier().convention(jar.flatMap(AbstractArchiveTask::getArchiveClassifier));
task.getArchiveAppendix().convention(jar.flatMap(AbstractArchiveTask::getArchiveAppendix));
task.getLibraries().from(sourceSet.getCompileClasspath());
configureSrgToNamedOperation(task.getRemapOperation());
configureNamedToSrgOperation(task.getRemapOperation());
configuration.execute(task);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void apply(Project project) {

project.getDependencies().registerTransform(RemappingTransform.class, params -> {
params.parameters(parameters -> {
obf.configureNamedToSrgOperation(parameters.getRemapOperation());
obf.configureSrgToNamedOperation(parameters.getRemapOperation());
parameters.getMinecraftDependencies().from(remapDeps);
});
params.getFrom()
Expand Down

0 comments on commit eebbfd7

Please sign in to comment.