1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-01-11 18:27:36 +00:00

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

Fixes 
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

@ -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) {
}