9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

忽略 'resources' 目录下 '.' 开头的文件夹

This commit is contained in:
Daniel Zhang
2025-06-15 19:56:02 +08:00
parent 2f141718aa
commit 001e461d18

View File

@@ -280,8 +280,11 @@ public abstract class AbstractPackManager implements PackManager {
this.plugin.logger().warn(path.toAbsolutePath() + " is not a directory");
continue;
}
Path metaFile = path.resolve("pack.yml");
String namespace = path.getFileName().toString();
if (namespace.charAt(0) == '.') {
continue;
}
Path metaFile = path.resolve("pack.yml");
String description = null;
String version = null;
String author = null;