fix: rebuild pattern when module is enabled
This commit is contained in:
parent
afd65ce815
commit
eb5ee8e453
1 changed files with 5 additions and 0 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Reference in a new issue