aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorRime <81419447+Emirlol@users.noreply.github.com>2024-05-21 14:30:04 +0300
committerRime <81419447+Emirlol@users.noreply.github.com>2024-05-23 13:31:48 +0300
commit92865430f6b9c7e1646b199a5ae1d7c3482956b5 (patch)
treef1901de8d3584d7ce09d7a6d80a9110d1ac1bbc9 /src/main
parentc28c60bcc2b0aa308d8550161f2fcd27ee270201 (diff)
downloadSkyblocker-92865430f6b9c7e1646b199a5ae1d7c3482956b5.tar.gz
Skyblocker-92865430f6b9c7e1646b199a5ae1d7c3482956b5.tar.bz2
Skyblocker-92865430f6b9c7e1646b199a5ae1d7c3482956b5.zip
Renamed variable
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java b/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
index b06b65f7..306d09ee 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
@@ -109,10 +109,10 @@ public class ChocolateFactorySolver extends ContainerSolver {
RegexUtils.getDoubleFromMatcher(multiplierMatcher, cpsMatcher.hasMatch() ? cpsMatcher.end() : 0).ifPresent(d -> totalCpsMultiplier = d);
//Prestige item is in slot 28
- Matcher matcher = PRESTIGE_REQUIREMENT_PATTERN.matcher(getConcatenatedLore(slots.get(28)));
- OptionalLong currentChocolate = RegexUtils.getLongFromMatcher(matcher);
+ Matcher prestigeMatcher = PRESTIGE_REQUIREMENT_PATTERN.matcher(getConcatenatedLore(slots.get(28)));
+ OptionalLong currentChocolate = RegexUtils.getLongFromMatcher(prestigeMatcher);
if (currentChocolate.isPresent()) {
- String requirement = matcher.group(2); //If the first one matched, we can assume the 2nd one is also matched since it's one whole regex
+ String requirement = prestigeMatcher.group(2); //If the first one matched, we can assume the 2nd one is also matched since it's one whole regex
//Since the last character is either M or B we can just try to replace both characters. Only the correct one will actually replace anything.
String amountString = requirement.replace("M", "000000").replace("B", "000000000");
if (NumberUtils.isParsable(amountString)) {