diff --git a/src/main/kotlin/xyz/atnrch/wrench/watcher/Watcher.kt b/src/main/kotlin/xyz/atnrch/wrench/watcher/Watcher.kt index 0fbc8d3..6386081 100644 --- a/src/main/kotlin/xyz/atnrch/wrench/watcher/Watcher.kt +++ b/src/main/kotlin/xyz/atnrch/wrench/watcher/Watcher.kt @@ -21,7 +21,7 @@ class Watcher( var foldersTotal = 0 for (entry: WatcherEntry in watcherManager.getEntries().values) { filesTotal += 1 - entry.map.forEach { + entry.outputs.forEach { val movePath = "${it.toAbsolutePath()}/${entry.file.name}" try { Files.copy(entry.file.toPath(), Path.of(movePath), StandardCopyOption.REPLACE_EXISTING)