geforkt von Mirrors/FastAsyncWorldEdit
Update FaWe #7
@ -712,6 +712,12 @@ public class MainUtil {
|
||||
return file;
|
||||
}
|
||||
}
|
||||
if (filename.matches(".*\\.[\\w].*")) {
|
||||
File file = MainUtil.resolveRelative(new File(dir, filename));
|
||||
if (file.exists()) {
|
||||
return file;
|
||||
}
|
||||
}
|
||||
for (ClipboardFormat f : ClipboardFormats.getAll()) {
|
||||
File file = MainUtil.resolveRelative(new File(dir, filename + "." + f.getPrimaryFileExtension()));
|
||||
if (file.exists()) {
|
||||
|
@ -401,7 +401,11 @@ public class SchematicCommands {
|
||||
if (format == null) {
|
||||
format = ClipboardFormats.findByFile(file);
|
||||
if (format == null) {
|
||||
actor.print(Caption.of("worldedit.schematic.unknown-format", TextComponent.of(formatName)));
|
||||
if (noExplicitFormat) {
|
||||
actor.print(Caption.of("fawe.worldedit.schematic.schematic.load-failure", TextComponent.of(file.getName())));
|
||||
} else {
|
||||
actor.print(Caption.of("worldedit.schematic.unknown-format", TextComponent.of(formatName)));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,6 @@ public class ClipboardFormats {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public static MultiClipboardHolder loadAllFromInput(
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren