Skip to content

Commit a13edb6

Browse files
author
Francisco Solis
authored
Fixed BrowserGui Search (#17)
1 parent 69a79aa commit a13edb6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
## v5.2.4 Changelog:
2+
```
3+
* Fixed BrowserGui Search
4+
```
5+
16
## v5.2.3 Changelog:
27
```
38
* Deprecated SimpleItem#setOwner
49
* Now javadoc is hosted on github pages
510
```
11+
612
## v5.2.2 Changelog:
713
```
814
* Fix to the Settings Gui

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>xyz.theprogramsrc</groupId>
88
<artifactId>SuperCoreAPI</artifactId>
9-
<version>5.2.3</version>
9+
<version>5.2.4</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SuperCoreAPI</name>

src/main/java/xyz/theprogramsrc/supercoreapi/spigot/gui/BrowserGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void onBuild(GuiModel model) {
5353
String[] tags = this.getSearchTags(obj);
5454
if(tags == null || this.searchTerm == null) return true;
5555
if(tags.length == 0) return true;
56-
return Arrays.stream(tags).anyMatch(tag -> this.getSuperUtils().removeColor(this.searchTerm).contains(this.getSuperUtils().removeColor(tag)));
56+
return Arrays.stream(tags).anyMatch(tag -> this.getSuperUtils().removeColor(tag).contains(this.getSuperUtils().removeColor(this.searchTerm)));
5757
}).collect(Collectors.toList()));
5858
int offset = this.page * this.maxItemsPerPage;
5959
int itemsToTake = Math.min(offset + this.maxItemsPerPage, objects.size());

0 commit comments

Comments
 (0)