SPIGOT-3482: ProjectileHitEvent for shulker bullet and llama spit
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user