Consider anything with GE > 0 as tradeable too

In ground items, consider anything that has positive GE value as
tradeable and exclude it from untradeable checks.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-06-14 14:35:27 +02:00
committed by Abex
parent 456025e20d
commit 36b114ed0b

View File

@@ -472,7 +472,7 @@ public class GroundItemsPlugin extends Plugin
{
final boolean isExplicitHidden = TRUE.equals(hiddenItems.getUnchecked(item));
final boolean isExplicitHighlight = TRUE.equals(highlightedItems.getUnchecked(item));
final boolean canBeHidden = isTradeable || !config.dontHideUntradeables();
final boolean canBeHidden = gePrice > 0 || isTradeable || !config.dontHideUntradeables();
final boolean underGe = gePrice < config.getHideUnderValue();
final boolean underHa = haPrice < config.getHideUnderValue();