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:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user