From 2eb3b7261803bcfc267bbf5c3ca4d432ccac9c8d Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Mon, 20 Jun 2016 23:46:03 -0400 Subject: [PATCH] Fix MC-91728 (cherry picked from commit 71f75bf) --- .../entity/projectile/EntityTippedArrow.java.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java.patch diff --git a/patches/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java.patch b/patches/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java.patch new file mode 100644 index 0000000000..78e2b4cfc5 --- /dev/null +++ b/patches/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java.patch @@ -0,0 +1,10 @@ +--- ../src-base/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java ++++ ../src-work/minecraft/net/minecraft/entity/projectile/EntityTippedArrow.java +@@ -176,6 +176,7 @@ + + for (PotionEffect potioneffect : this.field_184560_g.func_185170_a()) + { ++ if(potioneffect.func_188419_a().func_76403_b()) potioneffect.func_188419_a().func_180793_a(this, field_70250_c, p_184548_1_, potioneffect.func_76458_c(), 1); else // FORGE: Fix MC-91728 Tipped Arrows do not apply instant effects + p_184548_1_.func_70690_d(new PotionEffect(potioneffect.func_188419_a(), potioneffect.func_76459_b() / 8, potioneffect.func_76458_c(), potioneffect.func_82720_e(), potioneffect.func_188418_e())); + } +