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

Dieser Commit ist enthalten in:
dordsor21 2024-07-17 20:45:20 +01:00
Ursprung bf07548695
Commit 561ef4afdd
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

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