diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-06-19 00:53:45 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-19 00:53:45 -0400 |
commit | 98f05f77567975e433e2cefed42613bf5a42459e (patch) | |
tree | ffff23923145b900b7191c20ac2ec1c9f17cd9c8 /src/main | |
parent | b292a9dfbc9725de05d81c0702ad5817394c5f36 (diff) | |
download | craftbukkit-98f05f77567975e433e2cefed42613bf5a42459e.tar craftbukkit-98f05f77567975e433e2cefed42613bf5a42459e.tar.gz craftbukkit-98f05f77567975e433e2cefed42613bf5a42459e.tar.lz craftbukkit-98f05f77567975e433e2cefed42613bf5a42459e.tar.xz craftbukkit-98f05f77567975e433e2cefed42613bf5a42459e.zip |
Fixed hostile entities continuously targeting dead entities. Thanks Rigby!
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 1d249e3a..2fd7bd4a 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 |