From 916c0803103ef002666db6cafaba824db1d022b8 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 4 Jan 2021 19:10:10 +0000 Subject: [PATCH] 5000th commit: Fix //download --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 2 +- .../worldedit/extent/clipboard/io/FastSchematicWriter.java | 1 - .../worldedit/extent/clipboard/io/SpongeSchematicWriter.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index 1b324914d..468ded6b3 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -277,7 +277,7 @@ public class ClipboardCommands { ) @Deprecated @CommandPermissions({"worldedit.clipboard.download"}) - public void download(final Player player, final LocalSession session, @Arg(name = "format", desc = "String", def = "schem") final String formatName) throws WorldEditException { + public void download(final Player player, final LocalSession session, @Arg(name = "format", desc = "String", def = "fast") final String formatName) throws WorldEditException { final ClipboardFormat format = ClipboardFormats.findByAlias(formatName); if (format == null) { player.print(Caption.of("fawe.worldedit.clipboard.clipboard.invalid.format", formatName)); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicWriter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicWriter.java index 6b2a179af..c5e7fe56e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicWriter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicWriter.java @@ -121,7 +121,6 @@ public class FastSchematicWriter implements ClipboardWriter { outputStream.writeLazyCompoundTag("Schematic", out -> { out.writeNamedTag("DataVersion", WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.WORLD_EDITING).getDataVersion()); out.writeNamedTag("Version", CURRENT_VERSION); - out.writeNamedTag("FAWE", Fawe.get().getVersion().build); out.writeNamedTag("Width", (short) width); out.writeNamedTag("Height", (short) height); out.writeNamedTag("Length", (short) length); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicWriter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicWriter.java index daaa5f1c8..b0753f623 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicWriter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicWriter.java @@ -106,7 +106,6 @@ public class SpongeSchematicWriter implements ClipboardWriter { schematic.put("Version", new IntTag(CURRENT_VERSION)); schematic.put("DataVersion", new IntTag( WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.WORLD_EDITING).getDataVersion())); - schematic.put("FAWEVersion", new IntTag(Fawe.get().getVersion().build)); Map metadata = new HashMap<>(); metadata.put("WEOffsetX", new IntTag(offset.getBlockX()));