Skip to content

Commit

Permalink
ground items: don't recolor menu if hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Jun 15, 2018
1 parent 990175d commit 5e916c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ default Color highlightedColor()
@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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public void onMenuEntryAdded(MenuEntryAdded event)
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 + ">";
Expand Down

0 comments on commit 5e916c5

Please sign in to comment.