mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-06-28 12:08:09 +03:00
[FIX] Dont create files in test env
This commit is contained in:
parent
6110a29f5c
commit
03b7f35418
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ public HashedDir getUpdatesDir(String updateName) {
|
||||||
@Override
|
@Override
|
||||||
public void init(LaunchServer server) {
|
public void init(LaunchServer server) {
|
||||||
super.init(server);
|
super.init(server);
|
||||||
|
if(server.env == LaunchServer.LaunchServerEnv.TEST) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (!IOHelper.isDir(Path.of(updatesDir)))
|
if (!IOHelper.isDir(Path.of(updatesDir)))
|
||||||
Files.createDirectory(Path.of(updatesDir));
|
Files.createDirectory(Path.of(updatesDir));
|
||||||
|
|
Loading…
Reference in a new issue