diff options
author | md_5 <git@md-5.net> | 2016-11-28 12:47:01 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-28 12:47:01 +1100 |
commit | 1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06 (patch) | |
tree | ceacd2fad8185491f95a4a4c318fdb6be87433cb /src/main/java/org | |
parent | 2ba48b4965389ded9f4883bcb1da021710f0feb7 (diff) | |
download | craftbukkit-1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06.tar craftbukkit-1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06.tar.gz craftbukkit-1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06.tar.lz craftbukkit-1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06.tar.xz craftbukkit-1c07d5c78f07bf8a5dcc73c6f16f1b9743565b06.zip |
Add hitEntity to ProjectileHitEvent
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 3d3ea631..2621b777 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -778,8 +778,8 @@ public class CraftEventFactory { return event; } - public static ProjectileHitEvent callProjectileHitEvent(Entity entity) { - ProjectileHitEvent event = new ProjectileHitEvent((Projectile) entity.getBukkitEntity()); + public static ProjectileHitEvent callProjectileHitEvent(Entity entity, MovingObjectPosition position) { + ProjectileHitEvent event = new ProjectileHitEvent((Projectile) entity.getBukkitEntity(), position.entity == null ? null : position.entity.getBukkitEntity()); entity.world.getServer().getPluginManager().callEvent(event); return event; } |