9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00

update libs

This commit is contained in:
XiaoMoMi
2023-12-13 05:46:41 +08:00
parent 194be36857
commit 89e977526d
5 changed files with 11 additions and 5 deletions

View File

@@ -38,7 +38,12 @@ public class FileSelector {
if (file.isFile() && file.getName().endsWith(".yml")) {
items.addLast(new FileItem(file));
} else if (file.isDirectory()) {
items.addFirst(new FolderItem(file));
String path = file.getPath();
String[] split = path.split("\\\\");
String type = split[3];
switch (type) {
case "item", "rod", "bait", "util", "hook" -> items.addFirst(new FolderItem(file));
}
}
}
}