From 725f747f63eb83638ff4940df347582d6023640d Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Fri, 31 Dec 2021 22:20:16 +0000 Subject: [PATCH] Ensure installer temporary directory exists when installing --- .../src/main/java/com/skcraft/launcher/update/BaseUpdater.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java b/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java index 15dfd48bc..4f35b0de6 100644 --- a/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java +++ b/launcher/src/main/java/com/skcraft/launcher/update/BaseUpdater.java @@ -82,6 +82,9 @@ protected Manifest installPackage(@NonNull Installer installer, @NonNull Instanc final File cachePath = new File(instance.getDir(), "update_cache.json"); final File featuresPath = new File(instance.getDir(), "features.json"); + // Make sure the temp dir exists + installer.getTempDir().mkdirs(); + final InstallLog previousLog = Persistence.read(logPath, InstallLog.class); final InstallLog currentLog = new InstallLog(); currentLog.setBaseDir(contentDir);