diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 11:09:36 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 11:09:36 +0100 |
commit | aa9fe2a83cf65fcd28026db8f0bc9ed1723d49d5 (patch) | |
tree | 2c96bd35b9ae1742492882ff9b5e4cdecb829802 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 05acdf4a23666d576500d5fc32479c20cad2571a (diff) | |
download | skyhanni-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.kt | 2 |
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() |