Make hidden items case insensitive in GroundItems plugin
This commit is contained in:
@@ -148,7 +148,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
}
|
}
|
||||||
|
|
||||||
// gets the hidden/highlighted items from the text box in the config
|
// gets the hidden/highlighted items from the text box in the config
|
||||||
String configItems = config.getHiddenItems();
|
String configItems = config.getHiddenItems().toLowerCase();
|
||||||
List<String> hiddenItems = Arrays.asList(configItems.split(DELIMITER_REGEX));
|
List<String> hiddenItems = Arrays.asList(configItems.split(DELIMITER_REGEX));
|
||||||
// note: both of these lists are immutable
|
// note: both of these lists are immutable
|
||||||
configItems = config.getHighlightItems().toLowerCase();
|
configItems = config.getHighlightItems().toLowerCase();
|
||||||
@@ -198,7 +198,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
ItemComposition itemDefinition = itemCache.getUnchecked(itemId);
|
ItemComposition itemDefinition = itemCache.getUnchecked(itemId);
|
||||||
|
|
||||||
Integer currentQuantity = items.get(itemId);
|
Integer currentQuantity = items.get(itemId);
|
||||||
if (!hiddenItems.contains(itemDefinition.getName()))
|
if (!hiddenItems.contains(itemDefinition.getName().toLowerCase()))
|
||||||
{
|
{
|
||||||
if (currentQuantity == null)
|
if (currentQuantity == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user