Add hitEntity to ProjectileHitEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-11-28 12:47:01 +11:00
parent 3f8ec9a859
commit 5cdc0bbd0e
5 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@
protected void a(MovingObjectPosition movingobjectposition) {
Entity entity = movingobjectposition.entity;
-
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this); // CraftBukkit - Call event
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // CraftBukkit - Call event
if (entity != null) {
float f = MathHelper.sqrt(this.motX * this.motX + this.motY * this.motY + this.motZ * this.motZ);
int i = MathHelper.f((double) f * this.damage);