chore: delegate to fast for checking if sponge schematic clipboard format

This commit is contained in:
dordsor21 2024-07-17 20:45:20 +01:00
parent bf07548695
commit 561ef4afdd
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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