fixed offline cache enabled condition

This commit is contained in:
FinnHornhoover 2023-12-26 17:39:06 +03:00
parent 17f194810c
commit 7f9c5d90a1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}