Fixed hostile entities continuously targeting dead entities. Thanks Rigby!

This commit is contained in:
EvilSeph 2011-06-19 00:53:45 -04:00
parent b292a9dfbc
commit 98f05f7756

View File

@ -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