Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Don't wrap Exception thrown upon invalid schematic path inside a RuntimeException
Fixes #1506
Dieser Commit ist enthalten in:
Ursprung
52fa44516e
Commit
235d0360da
@ -876,8 +876,7 @@ public class UtilityCommands {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (!MainUtil.isInSubDirectory(root, file)) {
|
if (!MainUtil.isInSubDirectory(root, file)) {
|
||||||
throw new RuntimeException(
|
throw new StopExecutionException(TextComponent.of("Invalid path"));
|
||||||
new StopExecutionException(TextComponent.of("Invalid path")));
|
|
||||||
}
|
}
|
||||||
} catch (IOException ignored) {
|
} catch (IOException ignored) {
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren