Skip to content

Commit

Permalink
fix follow list granting friends achievements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jul 8, 2024
1 parent 2c92f4f commit f91276e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/FriendsProfilePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class BI_DLL $modify(BIFriendsProfilePage, FriendsProfilePage) {
}

void setFollowList() {
m_type = UserListType::Blocked;

auto GLM = GameLevelManager::sharedState();
auto BICache = BetterInfoCache::sharedState();

Expand All @@ -61,7 +63,7 @@ class BI_DLL $modify(BIFriendsProfilePage, FriendsProfilePage) {
followedCreatorsArray.push_back(score);
}

getUserListFinished(followedCreatorsArray.inner(), UserListType::Friends);
getUserListFinished(followedCreatorsArray.inner(), UserListType::Blocked);

m_fields->m_isFollowed = true;
m_totalFriends->setString(fmt::format("Total Followed: {}", followedCreatorsArray.size()).c_str());
Expand Down

0 comments on commit f91276e

Please sign in to comment.