Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
fix: use LinBus in FaweDelegateSchematicHandler
Dieser Commit ist enthalten in:
Ursprung
7e6df48829
Commit
5722ea202a
@ -36,10 +36,12 @@ import com.sk89q.worldedit.regions.CuboidRegion;
|
|||||||
import net.jpountz.lz4.LZ4BlockInputStream;
|
import net.jpountz.lz4.LZ4BlockInputStream;
|
||||||
import org.anarres.parallelgzip.ParallelGZIPOutputStream;
|
import org.anarres.parallelgzip.ParallelGZIPOutputStream;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.enginehub.linbus.stream.LinBinaryIO;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
|
import java.io.DataInputStream;
|
||||||
import java.io.EOFException;
|
import java.io.EOFException;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
@ -250,7 +252,7 @@ public class FaweDelegateSchematicHandler {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
SpongeSchematicV3Reader schematicReader =
|
SpongeSchematicV3Reader schematicReader =
|
||||||
new SpongeSchematicV3Reader(new NBTInputStream(new GZIPInputStream(is)));
|
new SpongeSchematicV3Reader(LinBinaryIO.read(new DataInputStream(new GZIPInputStream(is))));
|
||||||
Clipboard clip = schematicReader.read();
|
Clipboard clip = schematicReader.read();
|
||||||
return new Schematic(clip);
|
return new Schematic(clip);
|
||||||
} catch (IOException e2) {
|
} catch (IOException e2) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren