geforkt von Mirrors/Paper
SPIGOT-5010: World.getEntities returns entities in border chunks
Dieser Commit ist enthalten in:
Ursprung
455023c4bb
Commit
b7fea42777
@ -811,7 +811,7 @@ public class CraftWorld implements World {
|
|||||||
Entity bukkitEntity = mcEnt.getBukkitEntity();
|
Entity bukkitEntity = mcEnt.getBukkitEntity();
|
||||||
|
|
||||||
// Assuming that bukkitEntity isn't null
|
// Assuming that bukkitEntity isn't null
|
||||||
if (bukkitEntity != null) {
|
if (bukkitEntity != null && bukkitEntity.isValid()) {
|
||||||
list.add(bukkitEntity);
|
list.add(bukkitEntity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -830,7 +830,7 @@ public class CraftWorld implements World {
|
|||||||
Entity bukkitEntity = mcEnt.getBukkitEntity();
|
Entity bukkitEntity = mcEnt.getBukkitEntity();
|
||||||
|
|
||||||
// Assuming that bukkitEntity isn't null
|
// Assuming that bukkitEntity isn't null
|
||||||
if (bukkitEntity != null && bukkitEntity instanceof LivingEntity) {
|
if (bukkitEntity != null && bukkitEntity instanceof LivingEntity && bukkitEntity.isValid()) {
|
||||||
list.add((LivingEntity) bukkitEntity);
|
list.add((LivingEntity) bukkitEntity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren