Do not show quantity value for items with no GE/HA value (#5850)

Fixes issue #5841
This commit is contained in:
Tyler Nichols
2018-10-07 04:03:34 -04:00
committed by Tomas Slusny
parent ab051ae480
commit b469839a84

View File

@@ -319,7 +319,6 @@ public class ExaminePlugin extends Plugin
.append(" GE average ") .append(" GE average ")
.append(ChatColorType.HIGHLIGHT) .append(ChatColorType.HIGHLIGHT)
.append(StackFormatter.formatNumber(gePrice * quantity)); .append(StackFormatter.formatNumber(gePrice * quantity));
}
if (quantity > 1) if (quantity > 1)
{ {
@@ -331,6 +330,7 @@ public class ExaminePlugin extends Plugin
.append(ChatColorType.NORMAL) .append(ChatColorType.NORMAL)
.append("ea)"); .append("ea)");
} }
}
if (alchPrice > 0) if (alchPrice > 0)
{ {
@@ -339,7 +339,6 @@ public class ExaminePlugin extends Plugin
.append(" HA value ") .append(" HA value ")
.append(ChatColorType.HIGHLIGHT) .append(ChatColorType.HIGHLIGHT)
.append(StackFormatter.formatNumber(alchPrice * quantity)); .append(StackFormatter.formatNumber(alchPrice * quantity));
}
if (quantity > 1) if (quantity > 1)
{ {
@@ -351,6 +350,7 @@ public class ExaminePlugin extends Plugin
.append(ChatColorType.NORMAL) .append(ChatColorType.NORMAL)
.append("ea)"); .append("ea)");
} }
}
chatMessageManager.queue(QueuedMessage.builder() chatMessageManager.queue(QueuedMessage.builder()
.type(ChatMessageType.EXAMINE_ITEM) .type(ChatMessageType.EXAMINE_ITEM)