fixed offline cache enabled condition

This commit is contained in:
FinnHornhoover 2023-12-26 17:39:06 +03:00
parent 7956f653fb
commit ec7f494f41

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