File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/btw/lowercase/optiboxes/utils/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,6 @@ public Consumer<Float> getBlendFunc() {
6666 }
6767
6868 public static Blend byName (String name ) {
69- return Arrays .stream (Blend .values ()).filter (blend -> blend .name ().toLowerCase ().equals (name )).findFirst ().orElse (ADD );
69+ return Arrays .stream (Blend .values ()).filter (blend -> blend .toString ().toLowerCase ().equals (name )).findFirst ().orElse (ADD );
7070 }
7171}
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ public enum Weather {
1414 public static final Codec <Weather > CODEC = Codec .STRING .xmap (Weather ::byName , Weather ::toString );
1515
1616 public static Weather byName (String name ) {
17- return Arrays .stream (Weather .values ()).filter (weather -> weather .name ().toLowerCase ().equals (name )).findFirst ().orElse (null );
17+ return Arrays .stream (Weather .values ()).filter (weather -> weather .toString ().toLowerCase ().equals (name )).findFirst ().orElse (null );
1818 }
1919}
You can’t perform that action at this time.
0 commit comments