From f5ed310c706280e246cb585d4f2fa4a05f2f1f42 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 10 May 2023 12:27:45 +0200 Subject: Fixed `/shtrackcollection gold ingot` not working --- src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt index 69dd4ef87..b7d7b52f1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt @@ -41,7 +41,7 @@ class CollectionCounter { return } - val name = args.joinToString(" ") + val name = args.joinToString(" ").replace(" ", "_") val pair = CollectionAPI.getCollectionCounter(name) if (pair == null) { LorenzUtils.chat("§c[SkyHanni] Item $name is not in the collection data! (Maybe the API is disabled or try to open the collection inventory)") -- cgit