Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
Optimize getEntitiesByClasses slightly
Dieser Commit ist enthalten in:
Ursprung
e81013d786
Commit
f424222672
@ -885,8 +885,10 @@ public class CraftWorld implements World {
|
|||||||
Class<?> bukkitClass = bukkitEntity.getClass();
|
Class<?> bukkitClass = bukkitEntity.getClass();
|
||||||
|
|
||||||
for (Class<?> clazz : classes) {
|
for (Class<?> clazz : classes) {
|
||||||
if (clazz.isAssignableFrom(bukkitClass) && bukkitEntity.isValid()) {
|
if (clazz.isAssignableFrom(bukkitClass)) {
|
||||||
list.add(bukkitEntity);
|
if (bukkitEntity.isValid()) {
|
||||||
|
list.add(bukkitEntity);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren