Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix loading schematic from URLs
Dieser Commit ist enthalten in:
Ursprung
56175ffe0f
Commit
cb20cef0e6
@ -212,6 +212,7 @@ public class SchematicCommands {
|
|||||||
}
|
}
|
||||||
UUID uuid = UUID.fromString(filename.substring(4));
|
UUID uuid = UUID.fromString(filename.substring(4));
|
||||||
URL webUrl = new URL(Settings.IMP.WEB.URL);
|
URL webUrl = new URL(Settings.IMP.WEB.URL);
|
||||||
|
format = ClipboardFormats.findByAlias(formatName);
|
||||||
URL url = new URL(webUrl, "uploads/" + uuid + "." + format.getPrimaryFileExtension());
|
URL url = new URL(webUrl, "uploads/" + uuid + "." + format.getPrimaryFileExtension());
|
||||||
ReadableByteChannel byteChannel = Channels.newChannel(url.openStream());
|
ReadableByteChannel byteChannel = Channels.newChannel(url.openStream());
|
||||||
in = Channels.newInputStream(byteChannel);
|
in = Channels.newInputStream(byteChannel);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren