Skip to content

Commit

Permalink
chore: delegate to fast for checking if sponge schematic clipboard fo…
Browse files Browse the repository at this point in the history
…rmat
  • Loading branch information
dordsor21 committed Jul 17, 2024
1 parent bf07548 commit 561ef4a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public boolean isFormat(File file) {
}
return super.isFormat(file);
}

},
//FAWE end

Expand Down Expand Up @@ -239,6 +238,11 @@ public ClipboardWriter getWriter(OutputStream outputStream) throws IOException {
public boolean isFormat(InputStream inputStream) {
return detectOldSpongeSchematic(inputStream, 1);
}

@Override
public boolean isFormat(File file) {
return MCEDIT_SCHEMATIC.isFormat(file);
}
},

/**
Expand Down Expand Up @@ -268,6 +272,11 @@ public ClipboardWriter getWriter(OutputStream outputStream) throws IOException {
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

Expand Down

0 comments on commit 561ef4a

Please sign in to comment.