ForgePatch/patches/minecraft/net/minecraft/entity/monster/IllusionerEntity.java.patch

12 lines
922 B
Diff

--- a/net/minecraft/entity/monster/IllusionerEntity.java
+++ b/net/minecraft/entity/monster/IllusionerEntity.java
@@ -182,6 +182,8 @@
public void func_82196_d(LivingEntity p_82196_1_, float p_82196_2_) {
ItemStack itemstack = this.func_213356_f(this.func_184586_b(ProjectileHelper.func_221274_a(this, Items.field_151031_f)));
AbstractArrowEntity abstractarrowentity = ProjectileHelper.func_221272_a(this, itemstack, p_82196_2_);
+ if (this.func_184614_ca().func_77973_b() instanceof net.minecraft.item.BowItem)
+ abstractarrowentity = ((net.minecraft.item.BowItem)this.func_184614_ca().func_77973_b()).customArrow(abstractarrowentity);
double d0 = p_82196_1_.func_226277_ct_() - this.func_226277_ct_();
double d1 = p_82196_1_.func_226283_e_(0.3333333333333333D) - abstractarrowentity.func_226278_cu_();
double d2 = p_82196_1_.func_226281_cx_() - this.func_226281_cx_();