Skip to content

Commit

Permalink
chore: remove async keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Jan 15, 2025
1 parent 81e4a40 commit cb74136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/misc/lifespan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function lifespan(time: number, opt: LifespanCompOpt = {}): EmptyComp {
return {
id: "lifespan",
require: ["opacity"],
async add(this: GameObj<OpacityComp>) {
add(this: GameObj<OpacityComp>) {
_k.game.root.wait(time, () => {
this.opacity = this.opacity ?? 1;
if (fade > 0) {
Expand Down

0 comments on commit cb74136

Please sign in to comment.