3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-19 17:30:08 +01:00

chore: ensure flushed clipboard in spongev2 writer

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2024-06-09 17:31:34 +02:00
Ursprung 5ba7b1fe39
Commit 1f73309f6f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37E613079F3E5BB9

Datei anzeigen

@ -74,6 +74,10 @@ public class SpongeSchematicV3Writer implements ClipboardWriter {
@Override @Override
public void write(Clipboard clipboard) throws IOException { public void write(Clipboard clipboard) throws IOException {
//FAWE start - ensure clipboard is flushed in case of using clipboard-on-disk. Maintains allowing of the same code
// between upstream and FAWE
clipboard.flush();
//FAWE end
// For now always write the latest version. Maybe provide support for earlier if more appear. // For now always write the latest version. Maybe provide support for earlier if more appear.
outputStream.writeNamedTag("", outputStream.writeNamedTag("",
new CompoundTag(ImmutableMap.of("Schematic", new CompoundTag(write3(clipboard)))) new CompoundTag(ImmutableMap.of("Schematic", new CompoundTag(write3(clipboard))))