File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
22Official 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
1212Easily spot legitimate Avalanche profiles and projects at a glance. No more need to double-check.
1313
Original file line number Diff line number Diff line change 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
22Official Avalanche levels and profiles.
33
44### Development
Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments