ground items: change highlight value to take priority over other value thresholds

This commit is contained in:
Zachary Waller
2020-03-01 10:43:14 -08:00
committed by GitHub
parent 5935365c59
commit f6eeaf33c8

View File

@@ -431,6 +431,11 @@ public class GroundItemsPlugin extends Plugin
// Cache colors
priceChecks.clear();
if (config.getHighlightOverValue() > 0)
{
priceChecks.put(config.getHighlightOverValue(), config.highlightedColor());
}
if (config.insaneValuePrice() > 0)
{
priceChecks.put(config.insaneValuePrice(), config.insaneValueColor());
@@ -450,11 +455,6 @@ public class GroundItemsPlugin extends Plugin
{
priceChecks.put(config.lowValuePrice(), config.lowValueColor());
}
if (config.getHighlightOverValue() > 0)
{
priceChecks.put(config.getHighlightOverValue(), config.highlightedColor());
}
}
@Subscribe