aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 11:09:36 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 11:09:36 +0100
commitaa9fe2a83cf65fcd28026db8f0bc9ed1723d49d5 (patch)
tree2c96bd35b9ae1742492882ff9b5e4cdecb829802 /src/main/java/at/hannibal2/skyhanni/utils
parent05acdf4a23666d576500d5fc32479c20cad2571a (diff)
downloadskyhanni-aa9fe2a83cf65fcd28026db8f0bc9ed1723d49d5.tar.gz
skyhanni-aa9fe2a83cf65fcd28026db8f0bc9ed1723d49d5.tar.bz2
skyhanni-aa9fe2a83cf65fcd28026db8f0bc9ed1723d49d5.zip
Using fungi_cutter_mode instead of reading item lore
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index 7f6cc7623..8d600f70e 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -117,6 +117,8 @@ object SkyBlockItemModifierUtils {
fun ItemStack.getArmorDye() = getAttributeString("dye_item")?.asInternalName()
+ fun ItemStack.getFungiCutterMode() = getAttributeString("fungi_cutter_mode")
+
fun ItemStack.getRune(): NEUInternalName? {
val runesMap = getExtraAttributes()?.getCompoundTag("runes") ?: return null
val runesList = runesMap.keySet.associateWith { runesMap.getInteger(it) }.toList()