4040import org .anarres .parallelgzip .ParallelGZIPOutputStream ;
4141import org .enginehub .linbus .stream .LinBinaryIO ;
4242import org .enginehub .linbus .stream .LinReadOptions ;
43- import org .enginehub .linbus .tree .LinCompoundTag ;
4443import org .enginehub .linbus .tree .LinRootEntry ;
4544
4645import java .io .BufferedInputStream ;
@@ -118,10 +117,7 @@ public boolean isFormat(final InputStream inputStream) {
118117 @ Override
119118 public boolean isFormat (File file ) {
120119 String name = file .getName ().toLowerCase (Locale .ROOT );
121- if (name .endsWith (".schematic" ) || name .endsWith (".mcedit" ) || name .endsWith (".mce" )) {
122- return false ;
123- }
124- return super .isFormat (file );
120+ return name .endsWith (".schem" ) && super .isFormat (file );
125121 }
126122
127123 @ Override
@@ -261,7 +257,11 @@ public boolean isFormat(InputStream inputStream) {
261257
262258 @ Override
263259 public boolean isFormat (File file ) {
264- return MCEDIT_SCHEMATIC .isFormat (file );
260+ final String filename = file .getName ().toLowerCase (Locale .ROOT );
261+ if (!filename .endsWith (".schematic" ) && !filename .endsWith (".schem" )) {
262+ return false ;
263+ }
264+ return super .isFormat (file );
265265 }
266266
267267 @ Override
@@ -272,7 +272,7 @@ public Set<String> getExplicitFileExtensions() {
272272
273273 /**
274274 * @deprecated Slow, resource intensive, but sometimes safer than using the recommended
275- * {@link BuiltInClipboardFormat#FAST }.
275+ * {@link BuiltInClipboardFormat#FAST_V2 }.
276276 * Avoid using with any large schematics/clipboards for reading/writing.
277277 */
278278 @ Deprecated
0 commit comments