Update upstream

e485433 Fix legacy error message output for WorldGuard commands (2023)
This commit is contained in:
NotMyFault 2022-01-30 19:54:50 +01:00
parent 178604bbb7
commit 38b0dcf7e4
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -77,7 +77,7 @@ public abstract class ExceptionConverterHelper implements ExceptionConverter {
throw (CommandException) e.getCause();
}
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());
} catch (IllegalArgumentException | IllegalAccessException e) {