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:
Ursprung
5ba7b1fe39
Commit
1f73309f6f
@ -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))))
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren