diff options
author | alemi <me@alemi.dev> | 2023-03-02 01:45:02 +0100 |
---|---|---|
committer | alemi <me@alemi.dev> | 2023-03-02 01:45:02 +0100 |
commit | eb5ee8e45313c6856b52e5f53b8aa73d7506246b (patch) | |
tree | d94ef59df5df9688ab69b7f872e00a6388706991 /src/main | |
parent | afd65ce8155de0076e0d6f05dfce458de1a6263b (diff) |
fix: rebuild pattern when module is enabled0.3.3
Diffstat (limited to 'src/main')
-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())) { |