ground items: don't recolor menu if hidden

This commit is contained in:
Adam
2018-06-14 20:02:49 -04:00
parent 990175d416
commit 5e916c5151
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ public interface GroundItemsConfig extends Config
@ConfigItem(
keyName = "hiddenColor",
name = "Hidden items color",
description = "Configures the color for hidden items in right-click menu and when holding ALT",
description = "Configures the color for hidden items when holding ALT",
position = 12
)
default Color hiddenColor()

View File

@@ -412,7 +412,7 @@ public class GroundItemsPlugin extends Plugin
final Color highlighted = getHighlighted(itemComposition.getName(), haPrice, gePrice);
final Color color = getItemColor(highlighted, hidden);
if (color != null && !color.equals(config.defaultColor()))
if (color != null && hidden == null && !color.equals(config.defaultColor()))
{
String hexColor = Integer.toHexString(color.getRGB() & 0xFFFFFF);
String colTag = "<col=" + hexColor + ">";