diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-25 22:31:08 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-25 22:31:08 +0100 |
commit | 8325cd1528b3c37de59010286d8a78d0033d13ad (patch) | |
tree | 5548dea8d25b8e892e27d464f44a1171d87ebdf7 /src/main | |
parent | d09bdde7b82ed8c88b93eed28b1224074426e1d0 (diff) | |
download | skyhanni-8325cd1528b3c37de59010286d8a78d0033d13ad.tar.gz skyhanni-8325cd1528b3c37de59010286d8a78d0033d13ad.tar.bz2 skyhanni-8325cd1528b3c37de59010286d8a78d0033d13ad.zip |
Fixed problem reading numbers over 999
Diffstat (limited to 'src/main')
-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 919b88969..bbd420743 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt @@ -137,7 +137,7 @@ object ItemUtils { fun isSkyBlockMenuItem(stack: ItemStack?): Boolean = stack?.getInternalName() == "SKYBLOCK_MENU" - private val pattern = Pattern.compile("(?<name>(?:['\\w-]+ ?)+)(?:§8x(?<amount>\\d+))?") + private val pattern = Pattern.compile("(?<name>(?:['\\w-]+ ?)+)(?:§8x(?<amount>[\\d,]+))?") private val itemAmountCache = mutableMapOf<String, Pair<String, Int>>() |