diff --git a/paper-server/patches/sources/net/minecraft/commands/Commands.java.patch b/paper-server/patches/sources/net/minecraft/commands/Commands.java.patch index 1910b261ab..b430d59a44 100644 --- a/paper-server/patches/sources/net/minecraft/commands/Commands.java.patch +++ b/paper-server/patches/sources/net/minecraft/commands/Commands.java.patch @@ -76,11 +76,15 @@ CommandSourceStack commandSourceStack = parseResults.getContext().getSource(); Profiler.get().push(() -> "/" + command); ContextChain contextChain = finishParsing(parseResults, command, commandSourceStack); -@@ -313,9 +_,10 @@ +@@ -312,10 +_,13 @@ + ) ); } - } catch (Exception var12) { -+ if (throwCommandError) throw var12; // Paper +- } catch (Exception var12) { ++ // Paper start ++ } catch (Throwable var12) { // always gracefully handle it, no matter how bad:tm: ++ if (throwCommandError) throw var12; // rethrow directly if requested ++ // Paper end MutableComponent mutableComponent = Component.literal(var12.getMessage() == null ? var12.getClass().getName() : var12.getMessage()); - if (LOGGER.isDebugEnabled()) { - LOGGER.error("Command exception: /{}", command, var12);