mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 23:48:08 -05:00
fix silly error in ModMetadataimpl yet again
This commit is contained in:
parent
33e7ea3fe3
commit
39efa08218
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ Result<ModMetadata> ModMetadata::Impl::create(ModJson const& json) {
|
|||
ver = json["gd"].as_string();
|
||||
} else if (json["gd"].is_object()) {
|
||||
auto key = PlatformID::toShortString(GEODE_PLATFORM_TARGET, true);
|
||||
if (json["gd"].contains(key))
|
||||
ver = json["gd"][ver].as_string();
|
||||
if (json["gd"].contains(key) && json["gd"][key].is_string())
|
||||
ver = json["gd"][key].as_string();
|
||||
} else {
|
||||
return Err("[mod.json] has invalid target GD version");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue