mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
20 lines
768 B
Diff
20 lines
768 B
Diff
--- 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);
|
|
}
|