aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-28 18:45:54 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-28 18:45:54 +0100
commitb99fc8a750a577cd8d985d3c54245d7556d87851 (patch)
tree873517ef26b450e21d30e78213ed935d39d1a8ab /src/main/java/at
parente1d153de7fc5ad8511fa3d40b14d5815c9920096 (diff)
downloadskyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.tar.gz
skyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.tar.bz2
skyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.zip
lazy nether warts
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
index 9b1cc5e26..4088a4264 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt
@@ -60,6 +60,8 @@ class HideNotClickableItems {
"SEEDS|CARROT_ITEM|POTATO_ITEM|PUMPKIN_SEEDS|SUGAR_CANE|MELON_SEEDS|CACTUS|INK_SACK-3"
)
+ private val netherWart by lazy { "NETHER_STALK".asInternalName() }
+
@SubscribeEvent
fun onRepoReload(event: RepositoryReloadEvent) {
val hideNotClickable = event.getConstant<HideNotClickableItemsJson>("HideNotClickableItems")
@@ -382,7 +384,7 @@ class HideNotClickableItems {
return true
}
- if (stack.getInternalName() == "NETHER_STALK".asInternalName()) return false
+ if (stack.getInternalName() == netherWart) return false
hideReason = "This item is not a nether wart!"
return true