diff --git a/Launcher/source/client/ClientLauncher.java b/Launcher/source/client/ClientLauncher.java index e216fec..ecb191a 100644 --- a/Launcher/source/client/ClientLauncher.java +++ b/Launcher/source/client/ClientLauncher.java @@ -196,7 +196,7 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher) throws IOException { // Hash directory and compare (ignore update-only matcher entries, it will break offline-mode) HashedDir currentHDir = new HashedDir(dir, matcher == null ? null : matcher.verifyOnly()); - if (!hdir.diff(currentHDir, null).isSame()) { + if (!hdir.diff(currentHDir, matcher).isSame()) { throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); } }