From a3365a12bc5216c3e1f3f563a7d595a488bcb933 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 28 Sep 2021 14:27:36 +0100 Subject: [PATCH] Fix #1327 --- .../sk89q/worldedit/extent/clipboard/io/ClipboardFormats.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/ClipboardFormats.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/ClipboardFormats.java index c3b84f1b4..70e6d4161 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/ClipboardFormats.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/ClipboardFormats.java @@ -235,8 +235,7 @@ public class ClipboardFormats { } if (f == null || !f.exists()) { if (!input.contains("../")) { - dir = worldEdit.getWorkingDirectoryPath(config.saveDir).toFile(); - f = MainUtil.resolve(dir, input, format, true); + f = MainUtil.resolve(dir, input, null, true); } } if (f == null || !f.exists() || !MainUtil.isInSubDirectory(working, f)) {