We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64bcfc6 commit 8b2b940Copy full SHA for 8b2b940
src/main/java/com/fix3dll/skyblockaddons/utils/TextUtils.java
@@ -119,7 +119,7 @@ public static String formatCoin(Number number) {
119
* @since 2.2.3
120
*/
121
public static Component formatPrice(double price) {
122
- return price == -1
+ return price < 0
123
? Component.literal(Translations.getMessage("tooltip.none")).withColor(ColorCode.RED.getColor())
124
: Component.literal(TextUtils.formatCoin(price)).withColor(ColorCode.GOLD.getColor());
125
}
0 commit comments