mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Use format extension here
This commit is contained in:
parent
f849caf655
commit
a4de4e1a65
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user