diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-01 01:29:14 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-01 01:29:14 +0200 |
commit | 1bad17906dc6f5f1f65b48300404dec4c3b67043 (patch) | |
tree | c9b2098f741a266bfdb89267bfce5630d87e69f0 /src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | |
parent | 6194809a0ff90285efa36dcf54c1f378353a4196 (diff) | |
download | skyhanni-1bad17906dc6f5f1f65b48300404dec4c3b67043.tar.gz skyhanni-1bad17906dc6f5f1f65b48300404dec4c3b67043.tar.bz2 skyhanni-1bad17906dc6f5f1f65b48300404dec4c3b67043.zip |
Fixed bug with visitors that want an item only one time
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt index 43799dc50..557950fbe 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -152,7 +152,7 @@ object ItemUtils { val itemName = matcher.group("name") if (!itemName.contains("ยง8x")) { val amount = matcher.group("amount")?.replace(",", "")?.toInt() ?: 1 - val pair = Pair(itemName, amount) + val pair = Pair(itemName.trim(), amount) itemAmountCache[input] = pair return pair } |