diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-28 18:45:54 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-28 18:45:54 +0100 |
commit | b99fc8a750a577cd8d985d3c54245d7556d87851 (patch) | |
tree | 873517ef26b450e21d30e78213ed935d39d1a8ab | |
parent | e1d153de7fc5ad8511fa3d40b14d5815c9920096 (diff) | |
download | skyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.tar.gz skyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.tar.bz2 skyhanni-b99fc8a750a577cd8d985d3c54245d7556d87851.zip |
lazy nether warts
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/HideNotClickableItems.kt | 4 |
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 |