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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user