Skip to content

Commit

Permalink
排序图片列表
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 14, 2022
1 parent bc427e5 commit 5a0f2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/daoge/imagenk/ImageNKCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public boolean execute(CommandSender sender, String s, String[] strings) {
case 0 -> {
//创建图片
var createImageForm = new FormWindowSimple("Create Image", "Choose an image");
ImageNK.getInstance().getImageMapManager().getProvider().getAll().forEach(
ImageNK.getInstance().getImageMapManager().getProvider().getAll().stream().sorted().forEach(
name -> createImageForm.addButton(new ElementButton(name, new ElementButtonImageData(ElementButtonImageData.IMAGE_DATA_TYPE_PATH, "textures/items/painting.png")))
);
createImageForm.addHandler((creator, i1) -> {
Expand Down

0 comments on commit 5a0f2e4

Please sign in to comment.