Ensure output is deleted before remapping the game.
This commit is contained in:
parent
806dd1b840
commit
a3c90aca19
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue