summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityLlamaSpit.patch
blob: 4b284248e7b68eee81d1734b54ccb099c83467de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/net/minecraft/server/EntityLlamaSpit.java
+++ b/net/minecraft/server/EntityLlamaSpit.java
@@ -7,7 +7,7 @@
 
 public class EntityLlamaSpit extends Entity implements IProjectile {
 
-    public EntityLlama shooter;
+    public EntityLiving shooter; // CraftBukkit - type
     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);
         }