Skip to content

Commit 8b2b940

Browse files
committed
fix: negative prices
1 parent 64bcfc6 commit 8b2b940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fix3dll/skyblockaddons/utils/TextUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static String formatCoin(Number number) {
119119
* @since 2.2.3
120120
*/
121121
public static Component formatPrice(double price) {
122-
return price == -1
122+
return price < 0
123123
? Component.literal(Translations.getMessage("tooltip.none")).withColor(ColorCode.RED.getColor())
124124
: Component.literal(TextUtils.formatCoin(price)).withColor(ColorCode.GOLD.getColor());
125125
}

0 commit comments

Comments
 (0)