Use format extension here

Dieser Commit ist enthalten in:
Jesse Boyd 2019-04-15 21:22:58 +10:00
Ursprung f849caf655
Commit a4de4e1a65
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

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