mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
Fixed hostile entities continuously targeting dead entities. Thanks Rigby!
This commit is contained in:
@@ -2088,7 +2088,7 @@ public class World implements IBlockAccess {
|
|||||||
for (int i = 0; i < this.players.size(); ++i) {
|
for (int i = 0; i < this.players.size(); ++i) {
|
||||||
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
||||||
// CraftBukkit start - fixed an NPE
|
// CraftBukkit start - fixed an NPE
|
||||||
if (entityhuman1 == null) {
|
if (entityhuman1 == null || entityhuman1.dead) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Reference in New Issue
Block a user