2015-11-09 06:50:45 +00:00
|
|
|
--- ../src-base/minecraft/net/minecraft/command/CommandHandler.java
|
|
|
|
+++ ../src-work/minecraft/net/minecraft/command/CommandHandler.java
|
2016-03-12 00:59:24 +00:00
|
|
|
@@ -46,6 +46,16 @@
|
2015-11-09 06:50:45 +00:00
|
|
|
}
|
2016-03-12 00:59:24 +00:00
|
|
|
else if (icommand.func_184882_a(this.func_184879_a(), p_71556_1_))
|
2015-11-09 06:50:45 +00:00
|
|
|
{
|
2015-11-22 05:46:26 +00:00
|
|
|
+ net.minecraftforge.event.CommandEvent event = new net.minecraftforge.event.CommandEvent(icommand, p_71556_1_, astring);
|
2015-11-09 06:50:45 +00:00
|
|
|
+ if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event))
|
|
|
|
+ {
|
|
|
|
+ if (event.exception != null)
|
|
|
|
+ {
|
|
|
|
+ com.google.common.base.Throwables.propagateIfPossible(event.exception);
|
|
|
|
+ }
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (i > -1)
|
|
|
|
{
|
2016-03-12 00:59:24 +00:00
|
|
|
List<Entity> list = EntitySelector.<Entity>func_179656_b(p_71556_1_, astring[i], Entity.class);
|
|
|
|
@@ -109,7 +119,7 @@
|
|
|
|
TextComponentTranslation textcomponenttranslation = new TextComponentTranslation("commands.generic.exception", new Object[0]);
|
|
|
|
textcomponenttranslation.func_150256_b().func_150238_a(TextFormatting.RED);
|
|
|
|
p_175786_1_.func_145747_a(textcomponenttranslation);
|
2016-02-02 00:25:40 +00:00
|
|
|
- field_147175_a.warn("Couldn\'t process command: \'" + p_175786_4_ + "\'");
|
2016-03-12 00:59:24 +00:00
|
|
|
+ field_147175_a.warn("Couldn\'t process command: \'" + p_175786_4_ + "\'", var9);
|
2016-02-02 00:25:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|