Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
## v5.2.4 Changelog:
```
* Fixed BrowserGui Search
```

## v5.2.3 Changelog:
```
* Deprecated SimpleItem#setOwner
* Now javadoc is hosted on github pages
```

## v5.2.2 Changelog:
```
* Fix to the Settings Gui
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>xyz.theprogramsrc</groupId>
<artifactId>SuperCoreAPI</artifactId>
<version>5.2.3</version>
<version>5.2.4</version>
<packaging>jar</packaging>

<name>SuperCoreAPI</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onBuild(GuiModel model) {
String[] tags = this.getSearchTags(obj);
if(tags == null || this.searchTerm == null) return true;
if(tags.length == 0) return true;
return Arrays.stream(tags).anyMatch(tag -> this.getSuperUtils().removeColor(this.searchTerm).contains(this.getSuperUtils().removeColor(tag)));
return Arrays.stream(tags).anyMatch(tag -> this.getSuperUtils().removeColor(tag).contains(this.getSuperUtils().removeColor(this.searchTerm)));
}).collect(Collectors.toList()));
int offset = this.page * this.maxItemsPerPage;
int itemsToTake = Math.min(offset + this.maxItemsPerPage, objects.size());
Expand Down