From 246294d161cd15f065078263e38b0e2e29b8b4a8 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 28 Aug 2016 00:46:21 -0500 Subject: [PATCH] Make getEntity dead check more specific --- 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 bf5eab8d3..105d109c8 100644 --- a/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch +++ b/Spigot-Server-Patches/Add-getEntity-by-UUID-API.patch @@ -21,7 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 Entity entity = worldserver.getEntity(uuid); - if (entity != null) { -+ if (entity != null && entity.isAlive()) { ++ if (entity != null && !entity.dead) { return entity; } }