Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
SPIGOT-5010: World#getEntitiesByClass/es also return entities in border chunks.
Dieser Commit ist enthalten in:
Ursprung
43431ba65b
Commit
30a6337982
@ -861,7 +861,7 @@ public class CraftWorld implements World {
|
||||
|
||||
Class<?> bukkitClass = bukkitEntity.getClass();
|
||||
|
||||
if (clazz.isAssignableFrom(bukkitClass)) {
|
||||
if (clazz.isAssignableFrom(bukkitClass) && bukkitEntity.isValid()) {
|
||||
list.add((T) bukkitEntity);
|
||||
}
|
||||
}
|
||||
@ -885,7 +885,7 @@ public class CraftWorld implements World {
|
||||
Class<?> bukkitClass = bukkitEntity.getClass();
|
||||
|
||||
for (Class<?> clazz : classes) {
|
||||
if (clazz.isAssignableFrom(bukkitClass)) {
|
||||
if (clazz.isAssignableFrom(bukkitClass) && bukkitEntity.isValid()) {
|
||||
list.add(bukkitEntity);
|
||||
break;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren