From bd4a3a3efd37b50a6cca8bc0504000448a4bb1b4 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 26 Sep 2020 22:20:47 +0100 Subject: [PATCH] Fix inconsistency with legacy regarding loading schematics from URL --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index def560454..5ffe56406 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -204,6 +204,11 @@ public class SchematicCommands { InputStream in = null; try { URI uri; + if (formatName.startsWith("url:")) { + String t = filename; + filename = formatName; + formatName = t; + } if (filename.startsWith("url:")) { if (!actor.hasPermission("worldedit.schematic.load.web")) { actor.print(Caption.of("fawe.error.no-perm", "worldedit.schematic.load.web"));