aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/TheMod.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-05 18:03:59 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-05 18:03:59 -0400
commita5e926a150f0bef8d0832ea6ec467b3290c00cf2 (patch)
treeb0566e87e01d19471f6d029da2806adde4ecef13 /src/main/java/me/Danker/TheMod.java
parentd9fa0a5869ab7493c43f9b9d6eea7d9b6ba7d684 (diff)
downloadSkyblockMod-a5e926a150f0bef8d0832ea6ec467b3290c00cf2.tar.gz
SkyblockMod-a5e926a150f0bef8d0832ea6ec467b3290c00cf2.tar.bz2
SkyblockMod-a5e926a150f0bef8d0832ea6ec467b3290c00cf2.zip
Fix config saving wrong floor time
Diffstat (limited to 'src/main/java/me/Danker/TheMod.java')
-rw-r--r--src/main/java/me/Danker/TheMod.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/TheMod.java b/src/main/java/me/Danker/TheMod.java
index 1fe1dfa..6c1bc2e 100644
--- a/src/main/java/me/Danker/TheMod.java
+++ b/src/main/java/me/Danker/TheMod.java
@@ -738,15 +738,15 @@ public class TheMod
} else if (sCleaned.contains("F2")) {
lc.f2TimeSpent = Math.floor(lc.f2TimeSpent + timeToAdd);
lc.f2TimeSpentSession = Math.floor(lc.f2TimeSpentSession + timeToAdd);
- cf.writeDoubleConfig("catacombs", "floorTwoTime", lc.f1TimeSpent);
+ cf.writeDoubleConfig("catacombs", "floorTwoTime", lc.f2TimeSpent);
} else if (sCleaned.contains("F3")) {
lc.f3TimeSpent = Math.floor(lc.f3TimeSpent + timeToAdd);
lc.f3TimeSpentSession = Math.floor(lc.f3TimeSpentSession + timeToAdd);
- cf.writeDoubleConfig("catacombs", "floorThreeTime", lc.f1TimeSpent);
+ cf.writeDoubleConfig("catacombs", "floorThreeTime", lc.f3TimeSpent);
} else if (sCleaned.contains("F4")) {
lc.f4TimeSpent = Math.floor(lc.f4TimeSpent + timeToAdd);
lc.f4TimeSpentSession = Math.floor(lc.f4TimeSpentSession + timeToAdd);
- cf.writeDoubleConfig("catacombs", "floorFourTime", lc.f1TimeSpent);
+ cf.writeDoubleConfig("catacombs", "floorFourTime", lc.f4TimeSpent);
}
} else if (sCleaned.contains("Time Elapsed:")) {
// Get floor time