mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
chore: delegate to fast for checking if sponge schematic clipboard format
This commit is contained in:
parent
bf07548695
commit
561ef4afdd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user