diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/itemprices/ItemPricesOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/itemprices/ItemPricesOverlay.java index bcb06fe6f1..d9fa163675 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/itemprices/ItemPricesOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/itemprices/ItemPricesOverlay.java @@ -234,7 +234,7 @@ class ItemPricesOverlay extends Overlay if (gePrice > 0) { itemStringBuilder.append("EX: ") - .append(QuantityFormatter.quantityToStackSize(gePrice * qty)) + .append(QuantityFormatter.quantityToStackSize((long) gePrice * qty)) .append(" gp"); if (config.showEA() && qty > 1) { @@ -251,7 +251,7 @@ class ItemPricesOverlay extends Overlay } itemStringBuilder.append("HA: ") - .append(QuantityFormatter.quantityToStackSize(haValue * qty)) + .append(QuantityFormatter.quantityToStackSize((long) haValue * qty)) .append(" gp"); if (config.showEA() && qty > 1) { @@ -267,7 +267,7 @@ class ItemPricesOverlay extends Overlay itemStringBuilder.append("
"); itemStringBuilder.append("HA Profit: ") - .append(ColorUtil.wrapWithColorTag(String.valueOf(haProfit * qty), haColor)) + .append(ColorUtil.wrapWithColorTag(String.valueOf((long) haProfit * qty), haColor)) .append(" gp"); if (config.showEA() && qty > 1) {