Don't wrap Exception thrown upon invalid schematic path inside a RuntimeException

Fixes #1506
This commit is contained in:
dordsor21 2021-12-29 16:55:32 +00:00
parent 52fa44516e
commit 235d0360da
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -876,8 +876,7 @@ public class UtilityCommands {
}
try {
if (!MainUtil.isInSubDirectory(root, file)) {
throw new RuntimeException(
new StopExecutionException(TextComponent.of("Invalid path")));
throw new StopExecutionException(TextComponent.of("Invalid path"));
}
} catch (IOException ignored) {
}