From 50811b1ca583c672366b412e1efb3e1613676096 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Wed, 30 Mar 2016 09:41:12 -0500 Subject: [PATCH] Skip dead entities in getEntity(UUID) API --- Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch b/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch index e1d6bf9b8..f7ddf0e23 100644 --- a/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch +++ b/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch @@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + Entity entity; + for (WorldServer world : worldServer) { + entity = world.getEntity(uuid); -+ if (entity != null) { ++ if (entity != null && !entity.dead) { + return entity; + } + }