From b469839a84ae04b34b1f6b811b144963bda92488 Mon Sep 17 00:00:00 2001 From: Tyler Nichols Date: Sun, 7 Oct 2018 04:03:34 -0400 Subject: [PATCH] Do not show quantity value for items with no GE/HA value (#5850) Fixes issue #5841 --- .../client/plugins/examine/ExaminePlugin.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java index 2420871888..4152f1bdaa 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java @@ -319,17 +319,17 @@ public class ExaminePlugin extends Plugin .append(" GE average ") .append(ChatColorType.HIGHLIGHT) .append(StackFormatter.formatNumber(gePrice * quantity)); - } - if (quantity > 1) - { - message - .append(ChatColorType.NORMAL) - .append(" (") - .append(ChatColorType.HIGHLIGHT) - .append(StackFormatter.formatNumber(gePrice)) - .append(ChatColorType.NORMAL) - .append("ea)"); + if (quantity > 1) + { + message + .append(ChatColorType.NORMAL) + .append(" (") + .append(ChatColorType.HIGHLIGHT) + .append(StackFormatter.formatNumber(gePrice)) + .append(ChatColorType.NORMAL) + .append("ea)"); + } } if (alchPrice > 0) @@ -339,17 +339,17 @@ public class ExaminePlugin extends Plugin .append(" HA value ") .append(ChatColorType.HIGHLIGHT) .append(StackFormatter.formatNumber(alchPrice * quantity)); - } - if (quantity > 1) - { - message - .append(ChatColorType.NORMAL) - .append(" (") - .append(ChatColorType.HIGHLIGHT) - .append(StackFormatter.formatNumber(alchPrice)) - .append(ChatColorType.NORMAL) - .append("ea)"); + if (quantity > 1) + { + message + .append(ChatColorType.NORMAL) + .append(" (") + .append(ChatColorType.HIGHLIGHT) + .append(StackFormatter.formatNumber(alchPrice)) + .append(ChatColorType.NORMAL) + .append("ea)"); + } } chatMessageManager.queue(QueuedMessage.builder()