fix: no null
This commit is contained in:
parent
4689b36818
commit
dc13b296db
|
@ -314,6 +314,9 @@ export default () => class Visible extends decorate(Trait) {
|
|||
|
||||
updateQuadTree() {
|
||||
if ('client' !== process.env.SIDE) {
|
||||
if (Vector.isNull(Rectangle.size(this.entity.visibleAabb))) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
this.#quadTreeAabb.length > 0
|
||||
&& Rectangle.isInside(this.#quadTreeAabb, this.entity.visibleAabb)
|
||||
|
|
Loading…
Reference in New Issue
Block a user