diff --git a/nms-patches/EntityLlamaSpit.patch b/nms-patches/EntityLlamaSpit.patch index e45072d4ab..4b284248e7 100644 --- a/nms-patches/EntityLlamaSpit.patch +++ b/nms-patches/EntityLlamaSpit.patch @@ -9,3 +9,11 @@ private NBTTagCompound b; public EntityLlamaSpit(World world) { +@@ -143,6 +143,7 @@ + } + + public void a(MovingObjectPosition movingobjectposition) { ++ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // Craftbukkit - Call event + if (movingobjectposition.entity != null && this.shooter != null) { + movingobjectposition.entity.damageEntity(DamageSource.a(this, this.shooter).b(), 1.0F); + } diff --git a/nms-patches/EntityShulkerBullet.patch b/nms-patches/EntityShulkerBullet.patch index 5a6bb0ce4e..915d374759 100644 --- a/nms-patches/EntityShulkerBullet.patch +++ b/nms-patches/EntityShulkerBullet.patch @@ -30,3 +30,11 @@ protected void b(NBTTagCompound nbttagcompound) { BlockPosition blockposition; NBTTagCompound nbttagcompound1; +@@ -287,6 +308,7 @@ + } + + protected void a(MovingObjectPosition movingobjectposition) { ++ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // Craftbukkit - Call event + if (movingobjectposition.entity == null) { + ((WorldServer) this.world).a(EnumParticle.EXPLOSION_LARGE, this.locX, this.locY, this.locZ, 2, 0.2D, 0.2D, 0.2D, 0.0D, new int[0]); + this.a(SoundEffects.gD, 1.0F, 1.0F);