aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-16 11:49:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-16 11:49:21 +0200
commitff7b904fe4cf58c2d7b62431e790b14fd46d7c01 (patch)
treef435c4a6e2a24d7d1ab385b231d8488015717cfa /src/main/java/at
parent4140b88a2a0b045169f90f392292528aca626d8a (diff)
downloadskyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.tar.gz
skyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.tar.bz2
skyhanni-ff7b904fe4cf58c2d7b62431e790b14fd46d7c01.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt2
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) }
}