Skip to content

Commit

Permalink
inverted condition
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 12, 2024
1 parent b0f3bab commit 1960162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class PlayerBrushManager {
*/
public @NotNull Optional<Brush> getBrushHandler(String name) {
return brushes.stream()
.filter(brush -> brush.getName().contains(name))
.filter(brush -> name.contains(brush.getName()))
.findAny();
}

Expand Down

0 comments on commit 1960162

Please sign in to comment.