Fix missing return statement in Spirit update method

This commit is contained in:
2025-05-28 06:37:42 +02:00
parent 2babfa5c1c
commit 128e12621b

View File

@@ -326,7 +326,7 @@ class Spirit {
this._setupPicking();
this.scene.add(this.grp);
}
update(dt) {
const t = this.clock.getElapsedTime();
const despawnSpeed = 0.8;
@@ -358,6 +358,7 @@ class Spirit {
}
if (t > this.lifeTime) {
this.dispose();
return false;
}
return true;
}