Enable META-INF fixer when remapping mods.
parent
a10307464e
commit
7359dc4e98
|
@ -58,6 +58,7 @@ import net.fabricmc.loom.configuration.providers.minecraft.MinecraftMappedProvid
|
||||||
import net.fabricmc.loom.util.Constants;
|
import net.fabricmc.loom.util.Constants;
|
||||||
import net.fabricmc.loom.util.TinyRemapperHelper;
|
import net.fabricmc.loom.util.TinyRemapperHelper;
|
||||||
import net.fabricmc.tinyremapper.InputTag;
|
import net.fabricmc.tinyremapper.InputTag;
|
||||||
|
import net.fabricmc.tinyremapper.NonClassCopyMode;
|
||||||
import net.fabricmc.tinyremapper.OutputConsumerPath;
|
import net.fabricmc.tinyremapper.OutputConsumerPath;
|
||||||
import net.fabricmc.tinyremapper.TinyRemapper;
|
import net.fabricmc.tinyremapper.TinyRemapper;
|
||||||
|
|
||||||
|
@ -174,7 +175,7 @@ public class ModProcessor {
|
||||||
try {
|
try {
|
||||||
OutputConsumerPath outputConsumer = new OutputConsumerPath.Builder(info.getRemappedOutput().toPath()).build();
|
OutputConsumerPath outputConsumer = new OutputConsumerPath.Builder(info.getRemappedOutput().toPath()).build();
|
||||||
|
|
||||||
outputConsumer.addNonClassFiles(info.getInputFile().toPath());
|
outputConsumer.addNonClassFiles(info.getInputFile().toPath(), NonClassCopyMode.FIX_META_INF, remapper);
|
||||||
outputConsumerMap.put(info, outputConsumer);
|
outputConsumerMap.put(info, outputConsumer);
|
||||||
String accessWidener = info.getAccessWidener();
|
String accessWidener = info.getAccessWidener();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue