From add541e2df3d863fb415315877ed9f04e8351f85 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 26 Jun 2020 08:02:51 +1000 Subject: [PATCH] SPIGOT-5812: ProjectileHitEvent fires twice if projectile is an Egg By: md_5 --- paper-server/nms-patches/EntityProjectile.patch | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 paper-server/nms-patches/EntityProjectile.patch diff --git a/paper-server/nms-patches/EntityProjectile.patch b/paper-server/nms-patches/EntityProjectile.patch deleted file mode 100644 index 56393daeaa..0000000000 --- a/paper-server/nms-patches/EntityProjectile.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/net/minecraft/server/EntityProjectile.java -+++ b/net/minecraft/server/EntityProjectile.java -@@ -42,6 +42,11 @@ - - if (movingobjectposition.getType() != MovingObjectPosition.EnumMovingObjectType.MISS && !flag) { - this.a(movingobjectposition); -+ // CraftBukkit start -+ if (this.dead) { -+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); -+ } -+ // CraftBukkit end - } - - Vec3D vec3d = this.getMot();