From 38b0dcf7e4dc01932c18ab20508c2fb7d1331bb6 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 30 Jan 2022 19:54:50 +0100 Subject: [PATCH] Update upstream e485433 Fix legacy error message output for WorldGuard commands (2023) --- .../internal/command/exception/ExceptionConverterHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java index ddeb035d7..73f76280e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/exception/ExceptionConverterHelper.java @@ -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) {