Ensure output is deleted before remapping the game.

dev/0.11
modmuss50 2021-03-31 13:14:24 +01:00
parent 806dd1b840
commit a3c90aca19
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ package net.fabricmc.loom.configuration.providers.minecraft;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Map;
@ -111,6 +112,8 @@ public class MinecraftMappedProvider extends DependencyProvider {
getProject().getLogger().lifecycle(":remapping minecraft (TinyRemapper, " + fromM + " -> " + toM + ")");
Files.delete(output);
TinyRemapper remapper = getTinyRemapper(fromM, toM);
try (OutputConsumerPath outputConsumer = new OutputConsumerPath.Builder(output).build()) {