Fix schem load url

This commit is contained in:
Jesse Boyd 2018-09-05 02:03:19 +10:00
parent beb2e0e1b0
commit db7110dac8
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ public class SchematicCommands extends MethodCommands {
ReadableByteChannel rbc = Channels.newChannel(url.openStream());
in = Channels.newInputStream(rbc);
uri = url.toURI();
if (format == null) format = ClipboardFormat.SCHEMATIC;
} else {
if (!player.hasPermission("worldedit.schematic.load") && !player.hasPermission("worldedit.clipboard.load")) {
BBC.NO_PERM.send(player, "worldedit.clipboard.load");