mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Don't wrap Exception thrown upon invalid schematic path inside a RuntimeException
Fixes #1506
This commit is contained in:
parent
52fa44516e
commit
235d0360da
@ -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) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user