aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-30 11:44:27 +0000
committerGitHub <noreply@github.com>2023-11-30 12:44:27 +0100
commit9e418deb7cb94b048d7bd6d41e85c3d439108698 (patch)
tree897b90a980a56e5fb697b57123bb871966e817ef /src/main/java/at/hannibal2
parent7f5ce682f8b6efe9b517c8413cb78f9b40015d85 (diff)
downloadskyhanni-9e418deb7cb94b048d7bd6d41e85c3d439108698.tar.gz
skyhanni-9e418deb7cb94b048d7bd6d41e85c3d439108698.tar.bz2
skyhanni-9e418deb7cb94b048d7bd6d41e85c3d439108698.zip
Fix migration (#743)
Fixed migration of garden.moneyPerHours.customFormat #743
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
index 147882837..937a94a45 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
@@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.features.garden.GardenNextJacobContest
import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed.getSpeed
import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed.isSpeedDataEmpty
import at.hannibal2.skyhanni.test.command.ErrorManager
+import at.hannibal2.skyhanni.utils.ConfigUtils
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.getItemNameOrNull
@@ -440,5 +441,8 @@ object CropMoneyDisplay {
event.move(3, "garden.moneyPerHourDicer", "garden.moneyPerHours.dicer")
event.move(3, "garden.moneyPerHourHideTitle", "garden.moneyPerHours.hideTitle")
event.move(3, "garden.moneyPerHourPos", "garden.moneyPerHours.pos")
+ event.move(11, "garden.moneyPerHours.customFormat") { element ->
+ ConfigUtils.migrateIntArrayListToEnumArrayList(element, CustomFormatEntry::class.java)
+ }
}
}