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)
|
private void notifyHighlightedItem(GroundItem item)
|
||||||
{
|
{
|
||||||
final boolean shouldNotifyHighlighted = config.notifyHighlightedDrops() &&
|
final boolean shouldNotifyHighlighted = config.notifyHighlightedDrops() &&
|
||||||
config.highlightedColor().equals(getHighlighted(
|
TRUE.equals(highlightedItems.getUnchecked(new NamedQuantity(item)));
|
||||||
new NamedQuantity(item),
|
|
||||||
item.getGePrice(),
|
|
||||||
item.getHaPrice()));
|
|
||||||
|
|
||||||
final boolean shouldNotifyTier = config.notifyTier() != HighlightTier.OFF &&
|
final boolean shouldNotifyTier = config.notifyTier() != HighlightTier.OFF &&
|
||||||
getValueByMode(item.getGePrice(), item.getHaPrice()) > config.notifyTier().getValueFromTier(config) &&
|
getValueByMode(item.getGePrice(), item.getHaPrice()) > config.notifyTier().getValueFromTier(config) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user