21 lines
1008 B
Diff
21 lines
1008 B
Diff
--- ../src-base/minecraft/net/minecraft/command/CommandHandler.java
|
|
+++ ../src-work/minecraft/net/minecraft/command/CommandHandler.java
|
|
@@ -50,6 +50,17 @@
|
|
}
|
|
else if (icommand.func_184882_a(this.func_184879_a(), p_71556_1_))
|
|
{
|
|
+ net.minecraftforge.event.CommandEvent event = new net.minecraftforge.event.CommandEvent(icommand, p_71556_1_, astring);
|
|
+ if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event))
|
|
+ {
|
|
+ if (event.getException() != null)
|
|
+ {
|
|
+ com.google.common.base.Throwables.throwIfUnchecked(event.getException());
|
|
+ }
|
|
+ return 1;
|
|
+ }
|
|
+ if (event.getParameters() != null) astring = event.getParameters();
|
|
+
|
|
if (j > -1)
|
|
{
|
|
List<Entity> list = EntitySelector.<Entity>func_179656_b(p_71556_1_, astring[j], Entity.class);
|