2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityProjectile.java
|
|
|
|
+++ b/net/minecraft/server/EntityProjectile.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -35,6 +35,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
public EntityProjectile(World world, EntityLiving entityliving) {
|
2016-02-29 22:32:46 +01:00
|
|
|
this(world, entityliving.locX, entityliving.locY + (double) entityliving.getHeadHeight() - 0.10000000149011612D, entityliving.locZ);
|
2014-11-25 22:32:16 +01:00
|
|
|
this.shooter = entityliving;
|
|
|
|
+ this.projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
|
2016-02-29 22:32:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
protected void i() {}
|
2016-06-09 03:43:49 +02:00
|
|
|
@@ -164,6 +165,11 @@
|
2016-02-29 22:32:46 +01:00
|
|
|
this.e(movingobjectposition.a());
|
2014-11-25 22:32:16 +01:00
|
|
|
} else {
|
|
|
|
this.a(movingobjectposition);
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (this.dead) {
|
2016-11-28 02:47:01 +01:00
|
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition);
|
2014-11-25 22:32:16 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|