3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-16 13:01:24 +02:00

schem list validation

Dieser Commit ist enthalten in:
Jesse Boyd 2018-10-17 23:57:36 +11:00
Ursprung f65887c957
Commit a7c6d5e987
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -603,6 +603,11 @@ public class SchematicCommands extends MethodCommands {
if (uriStr.startsWith("file:/")) {
File file = new File(uri.getPath());
name = file.getName();
try {
if (!MainUtil.isInSubDirectory(dir, file)) {
throw new RuntimeException(new CommandException("Invalid path"));
}
} catch (IOException ignore) {}
if (file.isDirectory()) {
isDir = true;
color = "&6";