From 3dfb81b9d5aefce9a2448d5e9e1533a28b16f11e Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Fri, 20 Oct 2023 19:32:09 +0100 Subject: Internal Changes: getInternalName Pt 2 (#548) Internal Changes: getInternalName Pt 2 #548 --- .../java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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 -- cgit