Skip to content

Commit 1960162

Browse files
author
david
committed
inverted condition
1 parent b0f3bab commit 1960162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/onelitefeather/bettergopaint/brush/PlayerBrushManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class PlayerBrushManager {
9696
*/
9797
public @NotNull Optional<Brush> getBrushHandler(String name) {
9898
return brushes.stream()
99-
.filter(brush -> brush.getName().contains(name))
99+
.filter(brush -> name.contains(brush.getName()))
100100
.findAny();
101101
}
102102

0 commit comments

Comments
 (0)