Skip to content

Commit c7a29f0

Browse files
committed
potential fix
1 parent b393d67 commit c7a29f0

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# <img src="logo.png" width="30" alt="The mod's logo." /> Avalanche Index
1+
# [<img src="logo.png" width="30" alt="The mod's logo." />](https://www.geode-sdk.org/mods/cubicstudios.avalancheindex) Avalanche Index
22
Official Avalanche levels and profiles.
33

44
---
@@ -7,7 +7,7 @@ Official Avalanche levels and profiles.
77
88
> [<img alt="Latest Version" src="https://img.shields.io/github/v/release/CubicCommunity/AvalancheIndex?include_prereleases&sort=semver&display_name=release&style=for-the-badge&logo=github&logoColor=ffffff&label=Version">](../../releases/) [<img alt="Code License" src="https://img.shields.io/github/license/CubicCommunity/AvalancheIndex?style=for-the-badge&logo=gnu&logoColor=ffffff&label=License">](LICENSE.md)
99
>
10-
> [<img alt="Mod Downloads" src="https://img.shields.io/github/downloads/CubicCommunity/AvalancheIndex/total?style=for-the-badge&logo=geode&logoColor=ffffff&label=Downloads">](https://www.geode-sdk.org/mods/cubicstudios.avalancheindex)
10+
> [<img alt="Downloads" src="https://img.shields.io/github/downloads/CubicCommunity/AvalancheIndex/total?style=for-the-badge&logo=geode&logoColor=ffffff&label=Downloads">](https://www.geode-sdk.org/mods/cubicstudios.avalancheindex)
1111
1212
Easily spot legitimate Avalanche profiles and projects at a glance. No more need to double-check.
1313

incl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# <img src="../logo.png" width="30" alt="The mod's logo." /> Avalanche Index
1+
# [<img src="../logo.png" width="30" alt="The mod's logo." />](https://www.geode-sdk.org/mods/cubicstudios.avalancheindex) Avalanche Index
22
Official Avalanche levels and profiles.
33

44
### Development

incl/src/Avalanche.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ namespace avalanche {
132132
} else {
133133
for (auto& [key, value] : jsonRes) {
134134
auto cacheKey = fmt::format("cache-badge-p{}", (std::string)key);
135+
136+
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedBadges.set(key, value);
135137
AVAL_MOD->setSavedValue(cacheKey, value);
136138
};
137139
};
138-
139-
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedBadges = jsonRes;
140140
};
141141
} else {
142142
log::error("Already fetched remote data for badges");
@@ -172,11 +172,11 @@ namespace avalanche {
172172
} else {
173173
for (auto& [key, value] : jsonRes) {
174174
auto cacheKey = fmt::format("cache-level-p{}", (std::string)key);
175+
176+
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedBadges.set(key, value);
175177
AVAL_MOD->setSavedValue(cacheKey, value);
176178
};
177179
};
178-
179-
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedLevels = jsonRes;
180180
};
181181
} else {
182182
log::error("Already fetched remote data for levels");

0 commit comments

Comments
 (0)