mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Respect clipboard settings (disk vs memory) when loading a schematic (#1742)
This commit is contained in:
parent
1c7643bb58
commit
deaf5ad2d6
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.extent.clipboard.io;
|
package com.sk89q.worldedit.extent.clipboard.io;
|
||||||
|
|
||||||
import com.fastasyncworldedit.core.extent.clipboard.DiskOptimizedClipboard;
|
|
||||||
import com.sk89q.worldedit.extent.clipboard.Clipboard;
|
import com.sk89q.worldedit.extent.clipboard.Clipboard;
|
||||||
import com.sk89q.worldedit.math.BlockVector3;
|
import com.sk89q.worldedit.math.BlockVector3;
|
||||||
|
import com.sk89q.worldedit.regions.CuboidRegion;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -59,7 +59,10 @@ public interface ClipboardReader extends Closeable {
|
|||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
default Clipboard read(UUID uuid) throws IOException {
|
default Clipboard read(UUID uuid) throws IOException {
|
||||||
return read(uuid, DiskOptimizedClipboard::new);
|
return read(
|
||||||
|
uuid,
|
||||||
|
(dimensions) -> Clipboard.create(new CuboidRegion(BlockVector3.ZERO, dimensions.subtract(BlockVector3.ONE)), uuid)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
default Clipboard read(UUID uuid, Function<BlockVector3, Clipboard> createOutput) throws IOException {
|
default Clipboard read(UUID uuid, Function<BlockVector3, Clipboard> createOutput) throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user