From 1bac9cb7a1a481b6574555c82461c555ec18cf46 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Fri, 25 Feb 2022 22:47:12 -0500 Subject: Fix slayer trackers not counting if drop is >= 10 --- src/main/java/me/Danker/features/loot/LootTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/me/Danker/features/loot') 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; -- cgit