From 678cc03f15be0c657127a865c53bc7d4a10e13f9 Mon Sep 17 00:00:00 2001 From: Zachary Waller Date: Wed, 18 Dec 2019 18:26:54 -0800 Subject: [PATCH] itemprices: fix overflow of item stack prices --- .../client/plugins/itemprices/ItemPricesOverlay.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {