grounditems: fix notifications for highlighted drops

Fix notifications for highlighted drops occuring when a non highlighted drop is
assigned a value tier with the same color as highlighted drops. Check the
highlightedItems list directly instead of doing a color comparison.
This commit is contained in:
Matthew C
2020-08-31 22:51:03 +09:00
committed by Adam
parent 46b297ce09
commit d8ddbe2cfa

View File

@@ -615,10 +615,7 @@ public class GroundItemsPlugin extends Plugin
private void notifyHighlightedItem(GroundItem item)
{
final boolean shouldNotifyHighlighted = config.notifyHighlightedDrops() &&
config.highlightedColor().equals(getHighlighted(
new NamedQuantity(item),
item.getGePrice(),
item.getHaPrice()));
TRUE.equals(highlightedItems.getUnchecked(new NamedQuantity(item)));
final boolean shouldNotifyTier = config.notifyTier() != HighlightTier.OFF &&
getValueByMode(item.getGePrice(), item.getHaPrice()) > config.notifyTier().getValueFromTier(config) &&