diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/ftbsc/bscv/modules/hud/Highlighter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/bscv/modules/hud/Highlighter.java b/src/main/java/ftbsc/bscv/modules/hud/Highlighter.java index 35da3c4..25d5ac7 100644 --- a/src/main/java/ftbsc/bscv/modules/hud/Highlighter.java +++ b/src/main/java/ftbsc/bscv/modules/hud/Highlighter.java @@ -42,6 +42,11 @@ public class Highlighter extends AbstractModule { .build(this); } + @Override + protected void onEnabled() { + this.pattern = Pattern.compile(this.query.get()); + } + private List<String> enchantments(ItemStack stack) { final ListNBT tags; if (Items.ENCHANTED_BOOK.equals(stack.getItem())) { |