Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-27 11:20:04 +01:00
feat: add litematica error when failing to load schematic (#2850)
* feat: add litematica error when failing to load schematic * Adjust
Dieser Commit ist enthalten in:
Ursprung
dac7cdbe4b
Commit
6fb0102e85
@ -247,7 +247,7 @@ public class FastSchematicReaderV2 extends NBTSchematicReader {
|
|||||||
throw new IOException("This schematic version is not supported; Version: " + version
|
throw new IOException("This schematic version is not supported; Version: " + version
|
||||||
+ ", DataVersion: " + dataVersion + ". It's very likely your schematic has an invalid file extension," +
|
+ ", DataVersion: " + dataVersion + ". It's very likely your schematic has an invalid file extension," +
|
||||||
" if the schematic has been created on a version lower than 1.13.2, the extension MUST be `.schematic`," +
|
" if the schematic has been created on a version lower than 1.13.2, the extension MUST be `.schematic`," +
|
||||||
" elsewise the schematic can't be read properly.");
|
" elsewise the schematic can't be read properly. If you are using a litematica schematic, it is not supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blocks != null) {
|
if (blocks != null) {
|
||||||
|
@ -421,6 +421,9 @@ public class SchematicCommands {
|
|||||||
} catch (URISyntaxException | IOException e) {
|
} catch (URISyntaxException | IOException e) {
|
||||||
actor.print(Caption.of("worldedit.schematic.file-not-exist", TextComponent.of(Objects.toString(e.getMessage()))));
|
actor.print(Caption.of("worldedit.schematic.file-not-exist", TextComponent.of(Objects.toString(e.getMessage()))));
|
||||||
LOGGER.warn("Failed to load a saved clipboard", e);
|
LOGGER.warn("Failed to load a saved clipboard", e);
|
||||||
|
} catch (Exception e) {
|
||||||
|
actor.print(Caption.of("fawe.worldedit.schematic.schematic.load-failure", TextComponent.of(e.getMessage())));
|
||||||
|
LOGGER.error("Error loading a schematic", e);
|
||||||
} finally {
|
} finally {
|
||||||
if (in != null) {
|
if (in != null) {
|
||||||
try {
|
try {
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
"fawe.worldedit.schematic.schematic.loaded": "{0} loaded. Paste it with //paste",
|
"fawe.worldedit.schematic.schematic.loaded": "{0} loaded. Paste it with //paste",
|
||||||
"fawe.worldedit.schematic.schematic.saved": "{0} saved.",
|
"fawe.worldedit.schematic.schematic.saved": "{0} saved.",
|
||||||
"fawe.worldedit.schematic.schematic.none": "No files found.",
|
"fawe.worldedit.schematic.schematic.none": "No files found.",
|
||||||
"fawe.worldedit.schematic.schematic.load-failure": "File could not be read or it does not exist: {0}. If you are specifying a format, you may not be specifying the correct one. Sponge schematic v2 and v3 both use the .schem file extension. To allow FAWE to select the format, do not specify one.",
|
"fawe.worldedit.schematic.schematic.load-failure": "File could not be read or it does not exist: {0}. If you are specifying a format, you may not be specifying the correct one. Sponge schematic v2 and v3 both use the .schem file extension. To allow FAWE to select the format, do not specify one. If you are using a litematica schematic, it is not supported!",
|
||||||
"fawe.worldedit.clipboard.clipboard.uri.not.found": "You do not have {0} loaded",
|
"fawe.worldedit.clipboard.clipboard.uri.not.found": "You do not have {0} loaded",
|
||||||
"fawe.worldedit.clipboard.clipboard.cleared": "Clipboard cleared",
|
"fawe.worldedit.clipboard.clipboard.cleared": "Clipboard cleared",
|
||||||
"fawe.worldedit.clipboard.clipboard.invalid.format": "Unknown clipboard format: {0}",
|
"fawe.worldedit.clipboard.clipboard.invalid.format": "Unknown clipboard format: {0}",
|
||||||
@ -360,7 +360,7 @@
|
|||||||
"worldedit.schematic.unknown-format": "Unknown schematic format: {0}.",
|
"worldedit.schematic.unknown-format": "Unknown schematic format: {0}.",
|
||||||
"worldedit.schematic.load.does-not-exist": "Schematic {0} does not exist!",
|
"worldedit.schematic.load.does-not-exist": "Schematic {0} does not exist!",
|
||||||
"worldedit.schematic.load.loading": "(Please wait... loading schematic.)",
|
"worldedit.schematic.load.loading": "(Please wait... loading schematic.)",
|
||||||
"worldedit.schematic.load.unsupported-version": "This schematic is not supported. Version: {0}.",
|
"worldedit.schematic.load.unsupported-version": "This schematic is not supported. Version: {0}. If you are using a litematica schematic, it is not supported!",
|
||||||
"worldedit.schematic.save.already-exists": "That schematic already exists. Use the -f flag to overwrite it.",
|
"worldedit.schematic.save.already-exists": "That schematic already exists. Use the -f flag to overwrite it.",
|
||||||
"worldedit.schematic.save.failed-directory": "Could not create folder for schematics!",
|
"worldedit.schematic.save.failed-directory": "Could not create folder for schematics!",
|
||||||
"worldedit.schematic.save.saving": "(Please wait... saving schematic.)",
|
"worldedit.schematic.save.saving": "(Please wait... saving schematic.)",
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren