Skip to content

Commit

Permalink
update to beta.1, maybe fix macos issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Nov 15, 2024
1 parent 2258944 commit 9b72651
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "4.0.0-alpha.1",
"version": "v1.6.5",
"geode": "4.0.0-beta.1",
"version": "v1.6.6",
"gd": {
"win": "2.2074",
"android": "2.2074",
Expand Down
6 changes: 4 additions & 2 deletions src/Pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ Result<PackInfo> PackInfo::from(matjson::Value const& json) {
root.needs("version").into(info.m_version);

// has single "author" key?
if (auto& author = root.has("author").assertIsString()) {
info.m_authors = { author.get<std::string>() };
if (auto author = root.has("author")) {
std::string temp;
author.into(temp);
info.m_authors = { temp };
}
// otherwise use "authors" key
else {
Expand Down

0 comments on commit 9b72651

Please sign in to comment.