From 64b45f90b47f3f8adcdfdf44629c97dcb6c41b1d Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sun, 5 Feb 2017 10:10:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E4=BB=B6=E5=B7=B2=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=97=B6=E5=BF=BD=E7=95=A5=E6=96=87=E4=BB=B6=E9=87=8A?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/bukkit/P.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pw/yumc/YumCore/bukkit/P.java b/src/main/java/pw/yumc/YumCore/bukkit/P.java index b606f8d..1506338 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/P.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/P.java @@ -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); } }