Fix ground item swapped price values

Swap gePrice and haPrice in getHidden and getHighlighted calls
correctly.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-06-17 14:19:25 +02:00
parent 020c03682c
commit 170bfd15b0

View File

@@ -407,8 +407,8 @@ public class GroundItemsPlugin extends Plugin
final int price = itemPrice == null ? itemComposition.getPrice() : itemPrice.getPrice();
final int haPrice = Math.round(itemComposition.getPrice() * HIGH_ALCHEMY_CONSTANT) * quantity;
final int gePrice = quantity * price;
final Color hidden = getHidden(itemComposition.getName(), haPrice, gePrice, itemComposition.isTradeable());
final Color highlighted = getHighlighted(itemComposition.getName(), haPrice, gePrice);
final Color hidden = getHidden(itemComposition.getName(), gePrice, haPrice, itemComposition.isTradeable());
final Color highlighted = getHighlighted(itemComposition.getName(), gePrice, haPrice);
final Color color = getItemColor(highlighted, hidden);
if (color != null && hidden == null && !color.equals(config.defaultColor()))