aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-11-03 10:09:16 +1100
committerGitHub <noreply@github.com>2023-11-03 00:09:16 +0100
commit4b2a3c1c6e08f142df27679f948dfd63eb1a6976 (patch)
treeced1ee99876ddcf39fb8428b4ca153afa839e328
parentc14cfe950c8d0959e7c6b6fed7fd091b0cf826fe (diff)
downloadskyhanni-4b2a3c1c6e08f142df27679f948dfd63eb1a6976.tar.gz
skyhanni-4b2a3c1c6e08f142df27679f948dfd63eb1a6976.tar.bz2
skyhanni-4b2a3c1c6e08f142df27679f948dfd63eb1a6976.zip
fix tool fortune (#674)
Fixed tool fortune. #674
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
index 9b57e1fe1..d9161c692 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
@@ -21,6 +21,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
import at.hannibal2.skyhanni.utils.NEUInternalName
+import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getEnchantments
@@ -174,9 +175,9 @@ class FarmingFortuneDisplay {
}
return if (internalName.startsWith("THEORETICAL_HOE")) {
listOf(10.0, 25.0, 50.0)[internalName.toString().last().digitToInt() - 1]
- } else when (internalName.toString()) {
- "FUNGI_CUTTER" -> 30.0
- "COCO_CHOPPER" -> 20.0
+ } else when (internalName) {
+ "FUNGI_CUTTER".asInternalName() -> 30.0
+ "COCO_CHOPPER".asInternalName() -> 20.0
else -> 0.0
}
}
@@ -289,4 +290,4 @@ class FarmingFortuneDisplay {
event.move(3,"garden.farmingFortuneDropMultiplier", "garden.farmingFortunes.dropMultiplier")
event.move(3,"garden.farmingFortunePos", "garden.farmingFortunes.pos")
}
-} \ No newline at end of file
+}