diff --git a/libLauncher/src/main/java/ru/gravit/launcher/hasher/DirWatcher.java b/libLauncher/src/main/java/ru/gravit/launcher/hasher/DirWatcher.java index 582c4ff2..3330455e 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/hasher/DirWatcher.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/hasher/DirWatcher.java @@ -125,13 +125,12 @@ private void processKey(WatchKey key) throws IOException { LogHelper.debug("DirWatcher event %s", String.join("/", stringPath)); if (matcher != null && !matcher.shouldVerify(stringPath)) continue; // Exclusion; should not be verified - // Verify is REALLY modified (not just attributes) - if (kind.equals(StandardWatchEventKinds.ENTRY_MODIFY)) { - HashedEntry entry = hdir.resolve(stringPath); - if (entry != null && (entry.getType() != Type.FILE || ((HashedFile) entry).isSame(path, digest))) - continue; // Modified attributes, not need to worry :D - } + //if (kind.equals(StandardWatchEventKinds.ENTRY_MODIFY)) { + // HashedEntry entry = hdir.resolve(stringPath); + // if (entry != null && (entry.getType() != Type.FILE || ((HashedFile) entry).isSame(path, digest))) + // continue; // Modified attributes, not need to worry :D + //} // Forbidden modification! throw new SecurityException(String.format("Forbidden modification (%s, %d times): '%s'", kind, event.count(), path));