This commit is contained in:
Jesse Boyd 2018-03-07 15:07:50 +11:00
parent 3644ad9d70
commit 044fc0a44c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -238,7 +238,7 @@ public class SchematicCommands extends MethodCommands {
if (filename.startsWith("#")) { if (filename.startsWith("#")) {
f = player.openFileOpenDialog(new String[] { format.getExtension() }); f = player.openFileOpenDialog(new String[] { format.getExtension() });
if (!f.exists()) { if (!f.exists()) {
player.printError("Schematic " + filename + " does not exist!"); player.printError("Schematic " + filename + " does not exist! (" + f + ")");
return; return;
} }
} else { } else {
@ -267,7 +267,7 @@ public class SchematicCommands extends MethodCommands {
} }
} }
if (!f.exists() || !MainUtil.isInSubDirectory(working, f)) { if (!f.exists() || !MainUtil.isInSubDirectory(working, f)) {
player.printError("Schematic " + filename + " does not exist!"); player.printError("Schematic " + filename + " does not exist! (" + f.exists() + "|" + f + "|" + (!MainUtil.isInSubDirectory(working, f)) + ")");
return; return;
} }
in = new FileInputStream(f); in = new FileInputStream(f);