aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-10-20 19:32:09 +0100
committerGitHub <noreply@github.com>2023-10-20 20:32:09 +0200
commit3dfb81b9d5aefce9a2448d5e9e1533a28b16f11e (patch)
tree325914b6a03592e2cfe2249216b2b631401b5736 /src/main/java/at/hannibal2/skyhanni/utils
parentc233f06f5d4c7b054eb7e34e3af51ee02a01387c (diff)
downloadskyhanni-3dfb81b9d5aefce9a2448d5e9e1533a28b16f11e.tar.gz
skyhanni-3dfb81b9d5aefce9a2448d5e9e1533a28b16f11e.tar.bz2
skyhanni-3dfb81b9d5aefce9a2448d5e9e1533a28b16f11e.zip
Internal Changes: getInternalName Pt 2 (#548)
Internal Changes: getInternalName Pt 2 #548
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index d5a957160..fa94cb21d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -2,7 +2,7 @@ package at.hannibal2.skyhanni.utils
import at.hannibal2.skyhanni.config.ConfigManager
import at.hannibal2.skyhanni.mixins.hooks.ItemStackCachedData
-import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName_old
+import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
@@ -32,7 +32,7 @@ object SkyBlockItemModifierUtils {
it - 5 - getBaseSilexCount()
}?.takeIf { it > 0 }
- private fun ItemStack.getBaseSilexCount() = when (getInternalName_old()) {
+ private fun ItemStack.getBaseSilexCount() = when (getInternalName().asString()) {
"STONK_PICKAXE" -> 1
"PROMISING_SPADE" -> 5