diff options
author | MTOnline69 <97001154+MTOnline69@users.noreply.github.com> | 2024-10-06 21:01:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 22:01:37 +0200 |
commit | 3326753f29824791df28a941e2f4fc239992c9f1 (patch) | |
tree | c61ca688946f2056e3ebacbb86568c39e642ad7f /src/main/java/at/hannibal2/skyhanni/features | |
parent | 41d59a6888a8e1132e57dfab279efa8426853970 (diff) | |
download | skyhanni-3326753f29824791df28a941e2f4fc239992c9f1.tar.gz skyhanni-3326753f29824791df28a941e2f4fc239992c9f1.tar.bz2 skyhanni-3326753f29824791df28a941e2f4fc239992c9f1.zip |
Fix: Wiki keybind searching for <null> (#2682)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt index e72ad09c5..e6a1ef4e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt @@ -8,7 +8,6 @@ import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName -import at.hannibal2.skyhanni.utils.ItemUtils.itemName import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.NEUItems @@ -70,7 +69,7 @@ object WikiManager { private fun wikiTheItem(item: ItemStack, autoOpen: Boolean, useFandom: Boolean = config.useFandom) { val itemDisplayName = - item.itemName.replace("§a✔ ", "").replace("§c✖ ", "") + item.displayName.replace("§a✔ ", "").replace("§c✖ ", "") val internalName = item.getInternalName().asString() val wikiUrlSearch = if (internalName != "NONE") internalName else itemDisplayName.removeColor() |