Fix invalid schematic message

This commit is contained in:
Jesse Boyd 2019-04-13 07:15:35 +10:00
parent 361a4e3dce
commit 56499b7752
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -250,7 +250,7 @@ public class SchematicCommands extends MethodCommands {
}
}
if (f == null || !f.exists() || !MainUtil.isInSubDirectory(working, f)) {
player.printError("Schematic " + filename + " does not exist! (" + f.exists() + "|" + f + "|" + (!MainUtil.isInSubDirectory(working, f)) + ")");
player.printError("Schematic " + filename + " does not exist! (" + (f == null ? false : f.exists()) + "|" + f + "|" + (!MainUtil.isInSubDirectory(working, f)) + ")");
return;
}
if (format == null) {