From ec1e6bfd635311d940ee9e0dc80832c64021aa3e Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Thu, 25 Apr 2024 09:59:45 +0200 Subject: Fix: Command to clear kismet (#1539) --- src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 5 +++++ .../hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index e4a09e54e..36494c359 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.features.combat.endernodetracker.EnderNodeTracker import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostUtil import at.hannibal2.skyhanni.features.commands.PartyCommands import at.hannibal2.skyhanni.features.commands.WikiManager +import at.hannibal2.skyhanni.features.dungeon.CroesusChestTracker import at.hannibal2.skyhanni.features.event.diana.AllBurrowsList import at.hannibal2.skyhanni.features.event.diana.BurrowWarpHelper import at.hannibal2.skyhanni.features.event.diana.DianaProfitTracker @@ -358,6 +359,10 @@ object Commands { "shrepostatus", "Shows the status of all the mods constants" ) { SkyHanniMod.repo.displayRepoStatus(false) } + registerCommand( + "shclearksimet", + "Cleares the saved values of the applied kismet feathers in Croesus" + ) { CroesusChestTracker.resetChest() } registerCommand( "shkingfix", "Reseting the local King Talisman Helper offset." diff --git a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java index e1f0a23c8..f70d530e2 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java +++ b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java @@ -40,8 +40,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; -import java.util.stream.Stream; public class ProfileSpecificStorage { @@ -434,10 +432,7 @@ public class ProfileSpecificStorage { public Map bosses = new HashMap<>(); @Expose - public List runs = Stream.generate(DungeonStorage.DungeonRunInfo::new) - .limit(CroesusChestTracker.Companion.getMaxChests()) - .collect(Collectors.toCollection(ArrayList::new)); - + public List runs = CroesusChestTracker.Companion.generateMaxChestAsList(); public static class DungeonRunInfo { -- cgit