From c442cd29093d96ce08d6ac34eecfc61991c86c95 Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 16 Mar 2016 18:25:14 -0700 Subject: [PATCH] Fixed onUseStop being called twice {Bows firing twice} --- .../net/minecraft/entity/EntityLivingBase.java.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/entity/EntityLivingBase.java.patch b/patches/minecraft/net/minecraft/entity/EntityLivingBase.java.patch index e9e581bdf3..2ddf22c6d7 100644 --- a/patches/minecraft/net/minecraft/entity/EntityLivingBase.java.patch +++ b/patches/minecraft/net/minecraft/entity/EntityLivingBase.java.patch @@ -275,10 +275,11 @@ if (itemstack != null && itemstack.field_77994_a == 0) { itemstack = null; -@@ -2508,6 +2588,8 @@ +@@ -2507,7 +2587,8 @@ + { if (this.field_184627_bm != null) { - this.field_184627_bm.func_77974_b(this.field_70170_p, this, this.func_184605_cv()); +- this.field_184627_bm.func_77974_b(this.field_70170_p, this, this.func_184605_cv()); + if (!net.minecraftforge.event.ForgeEventFactory.onUseItemStop(this, field_184627_bm, this.func_184605_cv())) + this.field_184627_bm.func_77974_b(this.field_70170_p, this, this.func_184605_cv()); }