mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Fix loading schematic from URLs
This commit is contained in:
parent
56175ffe0f
commit
cb20cef0e6
@ -212,6 +212,7 @@ public class SchematicCommands {
|
||||
}
|
||||
UUID uuid = UUID.fromString(filename.substring(4));
|
||||
URL webUrl = new URL(Settings.IMP.WEB.URL);
|
||||
format = ClipboardFormats.findByAlias(formatName);
|
||||
URL url = new URL(webUrl, "uploads/" + uuid + "." + format.getPrimaryFileExtension());
|
||||
ReadableByteChannel byteChannel = Channels.newChannel(url.openStream());
|
||||
in = Channels.newInputStream(byteChannel);
|
||||
|
Loading…
Reference in New Issue
Block a user