Do not show quantity value for items with no GE/HA value (#5850)
Fixes issue #5841
This commit is contained in:
committed by
Tomas Slusny
parent
ab051ae480
commit
b469839a84
@@ -319,17 +319,17 @@ 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)
|
||||||
{
|
{
|
||||||
message
|
message
|
||||||
.append(ChatColorType.NORMAL)
|
.append(ChatColorType.NORMAL)
|
||||||
.append(" (")
|
.append(" (")
|
||||||
.append(ChatColorType.HIGHLIGHT)
|
.append(ChatColorType.HIGHLIGHT)
|
||||||
.append(StackFormatter.formatNumber(gePrice))
|
.append(StackFormatter.formatNumber(gePrice))
|
||||||
.append(ChatColorType.NORMAL)
|
.append(ChatColorType.NORMAL)
|
||||||
.append("ea)");
|
.append("ea)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alchPrice > 0)
|
if (alchPrice > 0)
|
||||||
@@ -339,17 +339,17 @@ 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)
|
||||||
{
|
{
|
||||||
message
|
message
|
||||||
.append(ChatColorType.NORMAL)
|
.append(ChatColorType.NORMAL)
|
||||||
.append(" (")
|
.append(" (")
|
||||||
.append(ChatColorType.HIGHLIGHT)
|
.append(ChatColorType.HIGHLIGHT)
|
||||||
.append(StackFormatter.formatNumber(alchPrice))
|
.append(StackFormatter.formatNumber(alchPrice))
|
||||||
.append(ChatColorType.NORMAL)
|
.append(ChatColorType.NORMAL)
|
||||||
.append("ea)");
|
.append("ea)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
chatMessageManager.queue(QueuedMessage.builder()
|
chatMessageManager.queue(QueuedMessage.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user