From 03b7f354180e463d68197e267090f0bc77580fcb Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Thu, 12 Jun 2025 13:28:48 +0700 Subject: [PATCH] [FIX] Dont create files in test env --- .../launchserver/auth/profiles/LocalProfilesProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java index 9abd49bd..0df9cbf6 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java @@ -237,6 +237,9 @@ public HashedDir getUpdatesDir(String updateName) { @Override public void init(LaunchServer server) { super.init(server); + if(server.env == LaunchServer.LaunchServerEnv.TEST) { + return; + } try { if (!IOHelper.isDir(Path.of(updatesDir))) Files.createDirectory(Path.of(updatesDir));