perf: avoid work
This commit is contained in:
parent
be7ec5c243
commit
36be786348
|
@ -118,7 +118,9 @@ export default class System {
|
|||
}
|
||||
|
||||
tickDestruction() {
|
||||
this.deindex(this.destroying);
|
||||
if (this.destroying.length > 0) {
|
||||
this.deindex(this.destroying);
|
||||
}
|
||||
this.destroying = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user