Fix items with no Grand Exchange Price using Store Price for the right click menu instead of High Alchemy value

This commit is contained in:
Hydrox6
2018-05-29 15:52:00 +01:00
committed by Adam
parent 8019a6e861
commit 921ed4a7e3

View File

@@ -380,7 +380,7 @@ public class GroundItemsPlugin extends Plugin
}
ItemPrice itemPrice = getItemPrice(itemComposition);
int price = itemPrice == null ? itemComposition.getPrice() : itemPrice.getPrice();
int price = itemPrice == null ? (int)Math.floor(itemComposition.getPrice() * HIGH_ALCHEMY_CONSTANT) : itemPrice.getPrice();
int cost = quantity * price;
Color color = overlay.getCostColor(cost, isHighlighted(itemComposition.getName()),
isHidden(itemComposition.getName()));