perf: avoid work

This commit is contained in:
cha0s 2024-07-04 09:10:37 -05:00
parent be7ec5c243
commit 36be786348

View File

@ -118,7 +118,9 @@ export default class System {
}
tickDestruction() {
this.deindex(this.destroying);
if (this.destroying.length > 0) {
this.deindex(this.destroying);
}
this.destroying = [];
}