aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-02-10 21:25:21 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-02-10 21:25:21 -0500
commitac5fd3d50845447eb90791b5bf4c1988c4d758bb (patch)
treeeeb9e0f2b532b5a6442a6d2f2bdbc14aa29310a5 /src/main
parentefe8267837230ceeccf181a4ca4555967ecebd4a (diff)
downloadSkyblockMod-ac5fd3d50845447eb90791b5bf4c1988c4d758bb.tar.gz
SkyblockMod-ac5fd3d50845447eb90791b5bf4c1988c4d758bb.tar.bz2
SkyblockMod-ac5fd3d50845447eb90791b5bf4c1988c4d758bb.zip
Add Mining 60 to the skill tracker
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 7b16a36..742cc82 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -572,8 +572,8 @@ public class DankersSkyblockMod {
}
}
timeSinceGained = System.currentTimeMillis() / 1000;
-
- int limit = section.contains("Farming") || section.contains("Enchanting") ? 60 : 50;
+
+ int limit = section.contains("Farming") || section.contains("Enchanting") || section.contains("Mining") ? 60 : 50;
double currentXP = Double.parseDouble(section.substring(section.indexOf("(") + 1, section.indexOf("/")).replace(",", ""));
int xpToLevelUp = Integer.parseInt(section.substring(section.indexOf("/") + 1, section.indexOf(")")).replaceAll(",", ""));
xpLeft = xpToLevelUp - currentXP;
@@ -641,7 +641,7 @@ public class DankersSkyblockMod {
double currentXp = Double.parseDouble(section.substring(section.indexOf("(") + 1, section.indexOf("/")).replace(",", ""));
int limit;
int totalXp;
- if (section.contains("Farming") || section.contains("Enchanting")) {
+ if (section.contains("Farming") || section.contains("Enchanting") || section.contains("Mining")) {
limit = 60;
totalXp = 111672425;
} else {