diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-16 11:49:21 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-16 11:49:21 +0200 |
commit | ff7b904fe4cf58c2d7b62431e790b14fd46d7c01 (patch) | |
tree | f435c4a6e2a24d7d1ab385b231d8488015717cfa /src/main/java/at/hannibal2 | |
parent | 4140b88a2a0b045169f90f392292528aca626d8a (diff) | |
download | skyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.tar.gz skyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.tar.bz2 skyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt index 513be0c4d..b6cb3a330 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt @@ -185,7 +185,7 @@ object SkyBlockItemModifierUtils { fun ItemStack.getNewYearCake() = getAttributeInt("new_years_cake") - fun ItemStack.getEnchantments() = getExtraAttributes()?.takeIf { it.hasKey("enchantments") }?.run { + fun ItemStack.getEnchantments(): Map<String, Int>? = getExtraAttributes()?.takeIf { it.hasKey("enchantments") }?.run { val enchantments = this.getCompoundTag("enchantments") enchantments.keySet.associateWith { enchantments.getInteger(it) } } |