From b482319b4b9f91f39d1808f1ba85b2b5adef774d Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 6 Jul 2020 17:51:33 +1000 Subject: [PATCH] SPIGOT-5951: Projectile#getShooter() returns null By: md_5 --- paper-server/nms-patches/IProjectile.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/IProjectile.patch b/paper-server/nms-patches/IProjectile.patch index 62a93b19f9..5351564e46 100644 --- a/paper-server/nms-patches/IProjectile.patch +++ b/paper-server/nms-patches/IProjectile.patch @@ -15,7 +15,7 @@ this.shooter = entity.getUniqueID(); this.c = entity.getId(); } -+ this.projectileSource = (entity instanceof ProjectileSource) ? (ProjectileSource) entity.getBukkitEntity() : null; // CraftBukkit ++ this.projectileSource = (entity != null && entity.getBukkitEntity() instanceof ProjectileSource) ? (ProjectileSource) entity.getBukkitEntity() : null; // CraftBukkit }