Skip to content

Commit

Permalink
Fix SRG being used on NeoForge for ATs
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Nov 1, 2023
1 parent f621913 commit ced6d81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import net.fabricmc.loom.api.processor.MinecraftJarProcessor;
import net.fabricmc.loom.api.processor.ProcessorContext;
import net.fabricmc.loom.api.processor.SpecContext;
import net.fabricmc.loom.build.IntermediaryNamespaces;
import net.fabricmc.loom.util.Constants;
import net.fabricmc.loom.util.DependencyDownloader;
import net.fabricmc.loom.util.ExceptionUtil;
Expand Down Expand Up @@ -138,7 +139,7 @@ private Path mergeAndRemapAccessTransformers(ProcessorContext context, List<Acce
}
}

accessTransformSet = accessTransformSet.remap(new TinyMappingsReader(context.getMappings(), MappingsNamespace.SRG.toString(), MappingsNamespace.NAMED.toString()).read());
accessTransformSet = accessTransformSet.remap(new TinyMappingsReader(context.getMappings(), IntermediaryNamespaces.intermediary(project), MappingsNamespace.NAMED.toString()).read());

final Path accessTransformerPath = tempFiles.file("accesstransformer-merged", ".cfg");

Expand Down

0 comments on commit ced6d81

Please sign in to comment.