diff options
author | NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> | 2023-06-19 15:20:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 21:20:02 +0200 |
commit | 93fd9ece889b68349bb3b2bdfc6943e5c356424d (patch) | |
tree | 316e7d0dcffc80b1e4d93ef8af0784367971610e /src | |
parent | 24ac5fb6dbdb793ce0eeac92c80c24f64f0868de (diff) | |
download | skyhanni-93fd9ece889b68349bb3b2bdfc6943e5c356424d.tar.gz skyhanni-93fd9ece889b68349bb3b2bdfc6943e5c356424d.tar.bz2 skyhanni-93fd9ece889b68349bb3b2bdfc6943e5c356424d.zip |
Fix coins displaying null in RPC (#246)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt index 20f203bb7..d114913bb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/discordrpc/DiscordStatus.kt @@ -108,7 +108,7 @@ enum class DiscordStatus(private val displayMessageSupplier: Supplier<String>?) } if (coins == "1") { lastKnownDisplayStrings[PURSE] = "1 Coin" - } else if (coins != "") { + } else if (coins != "" && coins != null) { lastKnownDisplayStrings[PURSE] = "$coins Coins" } lastKnownDisplayStrings[PURSE] ?: "" |