From 76f659c02ed496bf1437a59b84e9793acb8a0ba3 Mon Sep 17 00:00:00 2001 From: Matthew Prenger Date: Mon, 1 Feb 2016 18:25:40 -0600 Subject: [PATCH] Log unknown exceptions in commands. Resolves #2433 --- .../net/minecraft/command/CommandHandler.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/command/CommandHandler.java.patch b/patches/minecraft/net/minecraft/command/CommandHandler.java.patch index 1bc893d80..ab5182a94 100644 --- a/patches/minecraft/net/minecraft/command/CommandHandler.java.patch +++ b/patches/minecraft/net/minecraft/command/CommandHandler.java.patch @@ -17,3 +17,12 @@ if (i > -1) { List list = PlayerSelector.func_179656_b(p_71556_1_, astring[i], Entity.class); +@@ -107,7 +117,7 @@ + ChatComponentTranslation chatcomponenttranslation = new ChatComponentTranslation("commands.generic.exception", new Object[0]); + chatcomponenttranslation.func_150256_b().func_150238_a(EnumChatFormatting.RED); + p_175786_1_.func_145747_a(chatcomponenttranslation); +- field_147175_a.warn("Couldn\'t process command: \'" + p_175786_4_ + "\'"); ++ field_147175_a.warn("Couldn\'t process command: \'" + p_175786_4_ + "\'", var9); // Forge: Log stacktrace of unknown exceptions + } + + return false;