Skip to content

Commit

Permalink
Added search functionality for custom named items
Browse files Browse the repository at this point in the history
  • Loading branch information
r8420 committed Jun 23, 2020
1 parent 10d85cc commit dca7616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.17.2-mc1.15.2'
version = '1.17.3-mc1.15.2'
group = 'at.feldim2425.moreoverlays' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'moreoverlays'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ private void checkSlots(ContainerScreen<?> container) {
}

private boolean isSearchedItem(ItemStack stack) {
if(stack.getDisplayName().getFormattedText().toLowerCase().contains(JeiModule.getJEITextField().getText().toLowerCase())) {
return true;
}
if (emptyFilter) return true;
else if (stack.isEmpty()) return false;
for (Object ingredient : JeiModule.filter.getFilteredIngredients()) {
Expand Down

0 comments on commit dca7616

Please sign in to comment.