From 55e2ef9d9c5d30229b47f2969bf8524688a180ac Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 1 Aug 2019 00:04:45 +0200 Subject: [PATCH] Fix server crash with piercing shots through vanished players (#2390) --- Spigot-Server-Patches/Add-ProjectileCollideEvent.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/Spigot-Server-Patches/Add-ProjectileCollideEvent.patch b/Spigot-Server-Patches/Add-ProjectileCollideEvent.patch index 79a5bbca75..ebcd06ca69 100644 --- a/Spigot-Server-Patches/Add-ProjectileCollideEvent.patch +++ b/Spigot-Server-Patches/Add-ProjectileCollideEvent.patch @@ -18,6 +18,7 @@ index 2b829abac..af0f5cb00 100644 + com.destroystokyo.paper.event.entity.ProjectileCollideEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileCollideEvent(this, (MovingObjectPositionEntity)object); + if (event.isCancelled()) { + object = null; ++ movingobjectpositionentity = null; + } + } + // Paper end