aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-02-25 22:47:12 -0500
committerbowser0000 <bowser0000@gmail.com>2022-02-25 22:47:12 -0500
commit1bac9cb7a1a481b6574555c82461c555ec18cf46 (patch)
treef8ca439f82226e1a18a9c573ad18abf45fcc1ee3 /src/main/java/me/Danker/features
parent4f89ebe884e37084eb2088087f2bb378ccb84020 (diff)
downloadSkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.tar.gz
SkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.tar.bz2
SkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.zip
Fix slayer trackers not counting if drop is >= 10
Diffstat (limited to 'src/main/java/me/Danker/features')
-rw-r--r--src/main/java/me/Danker/features/loot/LootTracker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/features/loot/LootTracker.java b/src/main/java/me/Danker/features/loot/LootTracker.java
index 5371ddc..4e5974c 100644
--- a/src/main/java/me/Danker/features/loot/LootTracker.java
+++ b/src/main/java/me/Danker/features/loot/LootTracker.java
@@ -55,7 +55,7 @@ public class LootTracker {
}
public static int getAmountfromMessage(String message) {
- if (message.charAt(message.indexOf("(") + 2) == 'x') {
+ if (message.charAt(message.indexOf("(") + 2) == 'x' || message.charAt(message.indexOf("(") + 3) == 'x') {
return Integer.parseInt(message.substring(message.indexOf("(") + 1, message.indexOf("x")));
} else {
return 1;