mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Fix Aw2At not being applied
This commit is contained in:
@@ -169,13 +169,10 @@ public abstract class RemapJarTask extends AbstractRemapJarTask {
|
||||
|
||||
params.getForge().set(extension.isForge());
|
||||
params.getMappingBuildServiceUuid().convention("this should be unavailable!");
|
||||
params.getAtAccessWideners().set(getAtAccessWideners());
|
||||
|
||||
if (extension.isForge()) {
|
||||
params.getAtAccessWideners().set(getAtAccessWideners());
|
||||
|
||||
if (!getAtAccessWideners().get().isEmpty()) {
|
||||
params.getMappingBuildServiceUuid().set(UnsafeWorkQueueHelper.create(getProject(), MappingsService.createDefault(getProject(), getSourceNamespace().get(), getTargetNamespace().get())));
|
||||
}
|
||||
if (!getAtAccessWideners().get().isEmpty()) {
|
||||
params.getMappingBuildServiceUuid().set(UnsafeWorkQueueHelper.create(getProject(), MappingsService.createDefault(getProject(), getSourceNamespace().get(), getTargetNamespace().get())));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -324,7 +321,7 @@ public abstract class RemapJarTask extends AbstractRemapJarTask {
|
||||
}
|
||||
|
||||
AccessTransformSet at = AccessTransformSet.create();
|
||||
File jar = inputFile.toFile();
|
||||
File jar = outputFile.toFile();
|
||||
|
||||
try (FileSystemUtil.Delegate fileSystem = FileSystemUtil.getJarFileSystem(jar, false)) {
|
||||
FileSystem fs = fileSystem.get();
|
||||
|
||||
@@ -40,6 +40,8 @@ import org.gradle.api.tasks.bundling.Jar;
|
||||
|
||||
import net.fabricmc.loom.LoomGradleExtension;
|
||||
import net.fabricmc.loom.util.Constants;
|
||||
import net.fabricmc.loom.util.PropertyUtil;
|
||||
import net.fabricmc.loom.util.aw2at.Aw2At;
|
||||
|
||||
public class RemapTaskConfiguration {
|
||||
public static final String REMAP_JAR_TASK_NAME = "remapJar";
|
||||
@@ -91,6 +93,14 @@ public class RemapTaskConfiguration {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
project.afterEvaluate(p -> {
|
||||
if (extension.isForge()) {
|
||||
if (PropertyUtil.getAndFinalize(extension.getForge().getConvertAccessWideners())) {
|
||||
Aw2At.setup(project, remapJarTask);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private static void trySetupSourceRemapping(Project project) {
|
||||
|
||||
Reference in New Issue
Block a user