Fix schem load legacy

Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-17 18:20:00 +00:00
Ursprung 69c225c00f
Commit 868554367a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
2 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -211,11 +211,11 @@ public class SchematicCommands {
public void load(Actor actor, LocalSession session,
@Arg(desc = "File name.")
String filename,
@Arg(desc = "Format name.", def = "sponge")
@Arg(desc = "Format name.", def = "")
String formatName) throws FilenameException {
LocalConfiguration config = worldEdit.getConfiguration();
ClipboardFormat format = ClipboardFormats.findByAlias(formatName);
ClipboardFormat format = formatName != null ? ClipboardFormats.findByAlias(formatName) : null;
InputStream in = null;
try {
URI uri;

Datei anzeigen

@ -805,7 +805,7 @@ public class UtilityCommands {
boolean listGlobal = !Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS;
if (len > 0) {
for (int i = 0; i < len; i++) {
String arg = "";
String arg = args.get(i);
switch (arg.toLowerCase()) {
case "me":
case "mine":
@ -890,7 +890,8 @@ public class UtilityCommands {
UUID.fromString(f.getName());
return;
}
} catch (IllegalArgumentException ignored) {}
} catch (IllegalArgumentException ignored) {
}
super.accept(f);
}
};