Cleanup merged jar on failure

dev/0.11
modmuss50 2021-05-12 19:03:42 +01:00
parent 943477143a
commit 9303dc39c3
1 changed files with 1 additions and 0 deletions

View File

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