mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix checks for installed mods using getLoadedMod instead of getInstalledMod
This commit is contained in:
parent
984cb81535
commit
aa032a9d8d
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ Result<std::vector<ServerModUpdate>> ServerModUpdate::parseList(matjson::Value c
|
|||
}
|
||||
|
||||
bool ServerModUpdate::hasUpdateForInstalledMod() const {
|
||||
if (auto mod = Loader::get()->getLoadedMod(this->id)) {
|
||||
if (auto mod = Loader::get()->getInstalledMod(this->id)) {
|
||||
return mod->getVersion() < this->version;
|
||||
}
|
||||
return false;
|
||||
|
@ -330,7 +330,7 @@ ModMetadata ServerModMetadata::latestVersion() const {
|
|||
}
|
||||
|
||||
bool ServerModMetadata::hasUpdateForInstalledMod() const {
|
||||
if (auto mod = Loader::get()->getLoadedMod(this->id)) {
|
||||
if (auto mod = Loader::get()->getInstalledMod(this->id)) {
|
||||
return mod->getVersion() < this->latestVersion().getVersion();
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue