5000th commit: Fix //download

This commit is contained in:
dordsor21 2021-01-04 19:10:10 +00:00
parent 3f0b9a2a92
commit 916c080310
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
3 changed files with 1 additions and 3 deletions

View File

@ -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));

View File

@ -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);

View File

@ -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<String, Tag> metadata = new HashMap<>();
metadata.put("WEOffsetX", new IntTag(offset.getBlockX()));