Fix legacy error message output for WorldGuard commands (#2023)

This commit is contained in:
JOO200 2022-01-30 05:39:06 +01:00 committed by GitHub
parent fb50324767
commit e485433805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ public void convert(Throwable t) throws CommandException {
throw (CommandException) e.getCause(); throw (CommandException) e.getCause();
} }
if (e.getCause() instanceof com.sk89q.minecraft.util.commands.CommandException) { if (e.getCause() instanceof com.sk89q.minecraft.util.commands.CommandException) {
throw new CommandException(e.getCause(), ImmutableList.of()); throw new CommandExecutionException(e.getCause(), ImmutableList.of());
} }
throw new CommandExecutionException(e, ImmutableList.of()); throw new CommandExecutionException(e, ImmutableList.of());
} catch (IllegalArgumentException | IllegalAccessException e) { } catch (IllegalArgumentException | IllegalAccessException e) {