diff --git a/mod.json b/mod.json index 907ccb4..2b70221 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { "geode": "2.0.0", - "version": "v2.10.0", + "version": "v2.10.1", "id": "techstudent10.discord_rich_presence", "name": "Discord Rich Presence", "developer": "TechStudent10", diff --git a/src/CustomPresense.cpp b/src/CustomPresense.cpp index 0538cfb..e31d7e1 100644 --- a/src/CustomPresense.cpp +++ b/src/CustomPresense.cpp @@ -77,7 +77,7 @@ void gdrpc::GDRPC::updateDiscordRP( } else { discordPresence.largeImageKey = largeImage.c_str(); } - if (isIdling) { + if (isIdling && Mod::get()->getSettingValue("idling")) { discordPresence.details = "Idling"; if (shouldShowSensitive) { discordPresence.largeImageText = fmt::format("{} (playing on {})", gm->m_playerName, GEODE_PLATFORM_NAME).c_str(); diff --git a/src/main.cpp b/src/main.cpp index c590960..d756d2f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -583,6 +583,7 @@ class $modify(GJShopLayer) { class $modify(GJGarageLayer) { void onShards(CCObject* sender) { rpc->updateDiscordRP(MODID, "Browsing Menus", "Checking out shards"); + GJGarageLayer::onShards(sender); } };