fix: 文件已存在时忽略文件释放

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2017-02-05 10:10:11 +08:00
parent 192aaa3515
commit 64b45f90b4
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class P {
jar.stream().forEach(je -> {
if (!je.isDirectory()) {
for (final String dir : dirs) {
if (je.getName().startsWith(dir)) {
if (je.getName().startsWith(dir) && !new File(getDataFolder(), je.getName()).exists()) {
instance.saveResource(je.getName(), false);
}
}