From 6c05ec3b2ae8bf773aa100edd7c946391c632a44 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 23 May 2018 16:18:18 +1000 Subject: [PATCH] Fix //schem save -g --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index b2216cc3..f490605b 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -285,7 +285,7 @@ public class SchematicCommands extends MethodCommands { return; } File working = this.worldEdit.getWorkingDirectoryFile(config.saveDir); - File dir = global && Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working; + File dir = !global && Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working; if (filename.contains("../")) { if (!player.hasPermission("worldedit.schematic.save.other")) { BBC.NO_PERM.send(player, "worldedit.schematic.save.other");