Cleanup merged jar on failure

This commit is contained in:
modmuss50 2021-05-12 19:03:42 +01:00
parent 943477143a
commit 9303dc39c3

View file

@ -104,6 +104,7 @@ public class MinecraftProvider extends DependencyProvider {
} catch (ZipError e) {
HashedDownloadUtil.delete(minecraftClientJar);
HashedDownloadUtil.delete(minecraftServerJar);
minecraftMergedJar.delete();
getProject().getLogger().error("Could not merge JARs! Deleting source JARs - please re-run the command and move on.", e);
throw new RuntimeException();