SteamWar/SpigotCore
Archiviert
13
0

Fixes failing schematic saving

Dieser Commit ist enthalten in:
Lixfel 2020-01-13 06:42:24 +01:00
Ursprung c8b49ae7ef
Commit a841f5dfe4

Datei anzeigen

@ -6,6 +6,7 @@ import com.sk89q.worldedit.extension.platform.Actor;
import com.sk89q.worldedit.extent.clipboard.Clipboard;
import com.sk89q.worldedit.extent.clipboard.io.BuiltInClipboardFormat;
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormat;
import com.sk89q.worldedit.extent.clipboard.io.ClipboardWriter;
import com.sk89q.worldedit.session.ClipboardHolder;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
@ -35,7 +36,9 @@ class Schematic_14 {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try{
if(schemFormat){
SCHEM.getWriter(outputStream).write(clipboard);
ClipboardWriter writer = SCHEM.getWriter(outputStream);
writer.write(clipboard);
writer.close();
}else{
SCHEMATIC.getWriter(outputStream).write(clipboard);
}