Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidBlock-cn committed Oct 22, 2021
1 parent 692beef commit e812ca0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/pers/solid/mod/ConfigScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ private Screen createScreen(Screen previousScreen) {
final List<String> invalids = Arrays.stream(s.split("\\s+")).filter(s1 -> !s1.isEmpty()).filter(s2 -> !ExtShapeBridge.isValidShapeName(s2)).toList();
return invalids.isEmpty() ? Optional.empty() : Optional.of(new TranslatableText("option.reasonable-sorting.error.invalid_shape_name", String.join(" ", invalids)));
})
.setSaveConsumer(ExtShapeBridge::updateShapeList)
.setSaveConsumer(s3 -> {
config.shapesFollowingBaseBlocks = s3;
ExtShapeBridge.updateShapeList(s3);
})
.build());
}

Expand Down

0 comments on commit e812ca0

Please sign in to comment.