From 561ef4afdd3dd717d1f040b6440af39354d5826f Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 17 Jul 2024 20:45:20 +0100 Subject: [PATCH] chore: delegate to fast for checking if sponge schematic clipboard format --- .../extent/clipboard/io/BuiltInClipboardFormat.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java index 736167056..bfd6b2029 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/BuiltInClipboardFormat.java @@ -168,7 +168,6 @@ public enum BuiltInClipboardFormat implements ClipboardFormat { } return super.isFormat(file); } - }, //FAWE end @@ -239,6 +238,11 @@ public enum BuiltInClipboardFormat implements ClipboardFormat { public boolean isFormat(InputStream inputStream) { return detectOldSpongeSchematic(inputStream, 1); } + + @Override + public boolean isFormat(File file) { + return MCEDIT_SCHEMATIC.isFormat(file); + } }, /** @@ -268,6 +272,11 @@ public enum BuiltInClipboardFormat implements ClipboardFormat { public boolean isFormat(InputStream inputStream) { return detectOldSpongeSchematic(inputStream, 2); } + + @Override + public boolean isFormat(File file) { + return FAST_V2.isFormat(file); + } }, SPONGE_V3_SCHEMATIC("sponge.3", "slow", "safe") { // FAWE - edit aliases for fast