diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-13 00:00:03 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-13 00:00:03 +0200 |
commit | 42db7ef96003b87280e3f041aed63112636ea5ed (patch) | |
tree | ab09900a5db122ae02d84423f79da542fca7cf29 /src/main/java/at/hannibal2/skyhanni | |
parent | 3683257be3e74ac977d189100ff8db48b55d2a1b (diff) | |
download | skyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.tar.gz skyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.tar.bz2 skyhanni-42db7ef96003b87280e3f041aed63112636ea5ed.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt index 521be1429..65fa2f7fa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt @@ -39,6 +39,7 @@ import java.awt.Color import kotlin.math.min import kotlin.time.Duration.Companion.milliseconds +// TODO add support for estimated item value @SkyHanniModule object CustomWardrobe { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt index c01c52124..3c355a5a7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/Cache.kt @@ -16,8 +16,5 @@ class Cache { configChanged = false } - fun isCached(loreBeforeModification: List<String>): Boolean { - if (configChanged || loreBeforeModification.size != cachedLoreBefore.size) return false - return loreBeforeModification.indices.none { loreBeforeModification[it] != cachedLoreBefore[it] } - } -}
\ No newline at end of file + fun isCached(loreBeforeModification: List<String>): Boolean = !configChanged && loreBeforeModification == cachedLoreBefore +} |