diff options
author | bowser0000 <bowser0000@gmail.com> | 2022-02-25 22:47:12 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2022-02-25 22:47:12 -0500 |
commit | 1bac9cb7a1a481b6574555c82461c555ec18cf46 (patch) | |
tree | f8ca439f82226e1a18a9c573ad18abf45fcc1ee3 /src | |
parent | 4f89ebe884e37084eb2088087f2bb378ccb84020 (diff) | |
download | SkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.tar.gz SkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.tar.bz2 SkyblockMod-1bac9cb7a1a481b6574555c82461c555ec18cf46.zip |
Fix slayer trackers not counting if drop is >= 10
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/me/Danker/features/loot/LootTracker.java | 2 |
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; |