Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed handling of CommandExceptions thrown by commands.
Dieser Commit ist enthalten in:
Ursprung
0ffe0689d1
Commit
c58f8f4155
@ -346,6 +346,10 @@ public abstract class CommandsManager<T> {
|
|||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
|
if (e.getCause() instanceof CommandException) {
|
||||||
|
throw (CommandException) e.getCause();
|
||||||
|
}
|
||||||
|
|
||||||
throw new WrappedCommandException(e.getCause());
|
throw new WrappedCommandException(e.getCause());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren