9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-26 02:19:21 +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));
}
}
}
}

View File

@@ -16,7 +16,6 @@ lang: english
# Mechanic settings
mechanics:
# Specifies the conditions required for the plugin mechanics to work.
# Here, the type is !world, which implies the plugin won't work in
# the world named 'blacklist_world'.

View File

@@ -27,4 +27,5 @@ softdepend:
- Zaphkiel
permissions:
fishingbag.user:
default: true
default: true
fishingbag.loot