Fix displaying of examine price without GE value

Fix displaying of : in item price when GE value is missing and only HA
value is present.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2017-12-16 23:51:07 +01:00
parent e46d9e8c17
commit e4d15f0790

View File

@@ -266,13 +266,15 @@ public class ExaminePlugin extends Plugin
} }
message message
.append(itemComposition.getName()); .append(itemComposition.getName())
.append(ChatColorType.NORMAL)
.append(":");
if (gePrice > 0) if (gePrice > 0)
{ {
message message
.append(ChatColorType.NORMAL) .append(ChatColorType.NORMAL)
.append(": GE average ") .append(" GE average ")
.append(ChatColorType.HIGHLIGHT) .append(ChatColorType.HIGHLIGHT)
.append(String.format("%,d", gePrice)); .append(String.format("%,d", gePrice));
} }