Merge pull request #2434 from matthewprenger/logcommandexceptions

Log unknown exceptions in commands. Resolves #2433
This commit is contained in:
LexManos 2016-02-01 18:36:39 -06:00
commit 7103862bf9
1 changed files with 9 additions and 0 deletions

View File

@ -17,3 +17,12 @@
if (i > -1)
{
List<Entity> list = PlayerSelector.<Entity>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;