Use format extension here

This commit is contained in:
Jesse Boyd 2019-04-15 21:22:58 +10:00
parent f849caf655
commit a4de4e1a65
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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();