From ec7f494f41e854dca53bffb96e4df075b9278b63 Mon Sep 17 00:00:00 2001 From: FinnHornhoover Date: Tue, 26 Dec 2023 17:39:06 +0300 Subject: [PATCH] fixed offline cache enabled condition --- assets/js/server-selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/server-selector.js b/assets/js/server-selector.js index 99c64c4..b5201dc 100644 --- a/assets/js/server-selector.js +++ b/assets/js/server-selector.js @@ -782,7 +782,7 @@ function prepGameInfo(serverUUID) { // otherwise, if main.unity3d is present, use the offline cache var mainPath = path.join(offlinePath, "main.unity3d"); - var versionURL = remotefs.existsSync(mainPath) ? versionInfo.url : offlineURL; + var versionURL = !remotefs.existsSync(mainPath) ? versionInfo.url : offlineURL; setGameInfo(serverInfo, versionURL); }