Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 34142f7

Browse files
committed
fix update
1 parent 80b5084 commit 34142f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LiteLoader/CheckUpdate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ void updateCheck() {
1717
auto arr = json.GetArray();
1818
std::string LatestRelease = arr[arr.Size() - 1]["name"].GetString();
1919
int latestVersionNum = arr[arr.Size() - 1]["versionNum"].GetInt();
20-
if (latestVersionNum < LiteLoaderVersionNum) {
20+
if (latestVersionNum > LiteLoaderVersionNum) {
2121
std::cout << "[BDSLiteloader] Found a new version: " << LatestRelease << "\n";
2222
}
2323
if (latestVersionNum == LiteLoaderVersionNum) {
2424
}
25-
if (latestVersionNum > LiteLoaderVersionNum) {
25+
if (latestVersionNum < LiteLoaderVersionNum) {
2626
std::cout << "[BDSLiteloader] Using preview version: " << LatestRelease << "\n";
2727
}
2828
}

0 commit comments

Comments
 (0)