aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/minion
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-03-15 23:25:29 +0100
committerGitHub <noreply@github.com>2024-03-15 23:25:29 +0100
commit95cb1d7c7be44a6b7f9611e6420ff6b50146a830 (patch)
tree7302978e3e3f5195376e49d726167916be68a434 /src/main/java/at/hannibal2/skyhanni/features/minion
parent951bb6a26559b6db288a68a00f83d9ea45b0c3d8 (diff)
downloadskyhanni-95cb1d7c7be44a6b7f9611e6420ff6b50146a830.tar.gz
skyhanni-95cb1d7c7be44a6b7f9611e6420ff6b50146a830.tar.bz2
skyhanni-95cb1d7c7be44a6b7f9611e6420ff6b50146a830.zip
Backend: Storage Config Moving (#1171)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
index bbb9ae874..93ba7e540 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
@@ -2,7 +2,7 @@ package at.hannibal2.skyhanni.features.minion
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
-import at.hannibal2.skyhanni.config.Storage
+import at.hannibal2.skyhanni.config.storage.ProfileSpecificStorage
import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.data.ProfileStorageData
@@ -176,7 +176,7 @@ class MinionFeatures {
val name = getMinionName(openInventory)
if (!minions.contains(entity) && LorenzUtils.skyBlockIsland != IslandType.HUB) {
MinionFeatures.minions = minions.editCopy {
- this[entity] = Storage.ProfileSpecific.MinionConfig().apply {
+ this[entity] = ProfileSpecificStorage.MinionConfig().apply {
displayName = name
lastClicked = 0
}
@@ -288,7 +288,7 @@ class MinionFeatures {
}
if (message.startsWith("§bYou placed a minion!") && newMinion != null) {
minions = minions?.editCopy {
- this[newMinion!!] = Storage.ProfileSpecific.MinionConfig().apply {
+ this[newMinion!!] = ProfileSpecificStorage.MinionConfig().apply {
displayName = newMinionName
lastClicked = 0
}
@@ -376,7 +376,7 @@ class MinionFeatures {
var minionInventoryOpen = false
var minionStorageInventoryOpen = false
- private var minions: Map<LorenzVec, Storage.ProfileSpecific.MinionConfig>?
+ private var minions: Map<LorenzVec, ProfileSpecificStorage.MinionConfig>?
get() {
return ProfileStorageData.profileSpecific?.minions
}