From 98f05f77567975e433e2cefed42613bf5a42459e Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 19 Jun 2011 00:53:45 -0400 Subject: [PATCH] Fixed hostile entities continuously targeting dead entities. Thanks Rigby! --- src/main/java/net/minecraft/server/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 1d249e3a1d..2fd7bd4a8a 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -2088,7 +2088,7 @@ public class World implements IBlockAccess { for (int i = 0; i < this.players.size(); ++i) { EntityHuman entityhuman1 = (EntityHuman) this.players.get(i); // CraftBukkit start - fixed an NPE - if (entityhuman1 == null) { + if (entityhuman1 == null || entityhuman1.dead) { continue; } // CraftBukkit end