Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-16 16:10:07 +01:00
chore: delegate to fast for checking if sponge schematic clipboard format
Dieser Commit ist enthalten in:
Ursprung
bf07548695
Commit
561ef4afdd
@ -168,7 +168,6 @@ public enum BuiltInClipboardFormat implements ClipboardFormat {
|
|||||||
}
|
}
|
||||||
return super.isFormat(file);
|
return super.isFormat(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//FAWE end
|
//FAWE end
|
||||||
|
|
||||||
@ -239,6 +238,11 @@ public enum BuiltInClipboardFormat implements ClipboardFormat {
|
|||||||
public boolean isFormat(InputStream inputStream) {
|
public boolean isFormat(InputStream inputStream) {
|
||||||
return detectOldSpongeSchematic(inputStream, 1);
|
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) {
|
public boolean isFormat(InputStream inputStream) {
|
||||||
return detectOldSpongeSchematic(inputStream, 2);
|
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
|
SPONGE_V3_SCHEMATIC("sponge.3", "slow", "safe") { // FAWE - edit aliases for fast
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren