ground items: don't recolor menu if hidden
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 + ">";
|
||||
|
||||
Reference in New Issue
Block a user