From 9c703ff329a24709e34c3d356ff0fbd452a6254c Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Fri, 8 Sep 2023 19:51:08 +0800 Subject: [PATCH] Fix clone world ignore file --- .../com/onarandombox/MultiverseCore/worldnew/WorldManager.java | 2 +- .../MultiverseCore/worldnew/helpers/FilesManipulator.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java index c66dcd5f..65916190 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/worldnew/WorldManager.java @@ -53,7 +53,7 @@ import static com.onarandombox.MultiverseCore.worldnew.helpers.DataStore.WorldCo */ @Service public class WorldManager { - private static final List CLONE_IGNORE_FILES = Arrays.asList("uid.dat", "session.dat"); + private static final List CLONE_IGNORE_FILES = Arrays.asList("uid.dat", "session.lock"); private final Map offlineWorldsMap; private final Map worldsMap; diff --git a/src/main/java/com/onarandombox/MultiverseCore/worldnew/helpers/FilesManipulator.java b/src/main/java/com/onarandombox/MultiverseCore/worldnew/helpers/FilesManipulator.java index 0aa05759..ace7243c 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/worldnew/helpers/FilesManipulator.java +++ b/src/main/java/com/onarandombox/MultiverseCore/worldnew/helpers/FilesManipulator.java @@ -85,6 +85,7 @@ public class FilesManipulator { public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { // Pass files that are set to ignore if (excludeFiles.contains(file.getFileName().toString())) { + Logging.finest("Ignoring file: " + file.getFileName()); return FileVisitResult.CONTINUE; } // Copy the files