diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-09 22:39:27 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-09 22:39:27 +0100 |
commit | 4b1ca0420affea855bb7c41775825b6bb933b570 (patch) | |
tree | 4a3fbda4f1484e679836479936108344feeda1ec /src | |
parent | c98bbe34efab04cf46dde6a573b57275a69c5722 (diff) | |
download | skyhanni-4b1ca0420affea855bb7c41775825b6bb933b570.tar.gz skyhanni-4b1ca0420affea855bb7c41775825b6bb933b570.tar.bz2 skyhanni-4b1ca0420affea855bb7c41775825b6bb933b570.zip |
Fixed item rarity errors in museum.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index b0eab9926..ddd6896d8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -7,7 +7,9 @@ import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.RenderItemTooltipEvent +import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull +import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList @@ -130,6 +132,12 @@ object EstimatedItemValue { return } + if (InventoryUtils.openInventoryName().startsWith("Museum ")) { + if (item.getLore().any { it.contains("Armor Set") }) { + return + } + } + val newDisplay = try { draw(item) } catch (e: Exception) { |