From a5e926a150f0bef8d0832ea6ec467b3290c00cf2 Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Sat, 5 Sep 2020 18:03:59 -0400 Subject: Fix config saving wrong floor time --- src/main/java/me/Danker/TheMod.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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 -- cgit