diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java index 604537bd..686df2cc 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -552,7 +552,7 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher, if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true); LogHelper.error("Mismatch %s", e); }); - throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); + if(isFoundFile.get()) throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); } }