From a4de4e1a656300684a301c5a26297037bd3bf50c Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 15 Apr 2019 21:22:58 +1000 Subject: [PATCH] Use format extension here --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9db229f9b..930853dec 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 @@ -221,7 +221,7 @@ public class SchematicCommands extends MethodCommands { } UUID uuid = UUID.fromString(filename.substring(4)); URL base = new URL(Settings.IMP.WEB.URL); - URL url = new URL(base, "uploads/" + uuid + ".schematic"); + URL url = new URL(base, "uploads/" + uuid + "." + format.getPrimaryFileExtension()); ReadableByteChannel rbc = Channels.newChannel(url.openStream()); in = Channels.newInputStream(rbc); uri = url.toURI();