5000th commit: Fix //download

Dieser Commit ist enthalten in:
dordsor21 2021-01-04 19:10:10 +00:00
Ursprung 3f0b9a2a92
Commit 916c080310
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
3 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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