Fix item stat search filters
This commit is contained in:
parent
c0dcb814b9
commit
86eee2f617
1 changed files with 2 additions and 2 deletions
4
query.js
4
query.js
|
@ -268,7 +268,7 @@ class StatType extends Type {
|
|||
|
||||
constructor(name, desc, aliases, statExtractor) {
|
||||
super(name, desc, aliases);
|
||||
this.statExtractor = statExtractor;
|
||||
this.statExtractor = statExtractor || aliases;
|
||||
}
|
||||
|
||||
extractStat(item, itemExp) {
|
||||
|
@ -448,7 +448,7 @@ class StringType extends Type {
|
|||
|
||||
constructor(name, desc, aliases, stringExtractor) {
|
||||
super(name, desc, aliases);
|
||||
this.stringExtractor = stringExtractor;
|
||||
this.stringExtractor = stringExtractor || aliases;
|
||||
}
|
||||
|
||||
extractString(item, itemExp) {
|
||||
|
|
Loading…
Reference in a new issue