Fix buyables' onPurchase not being called
This commit is contained in:
parent
1e6104a349
commit
3f10abbb09
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ export function createBuyable<T extends BuyableOptions>(
|
||||||
);
|
);
|
||||||
genericBuyable.amount.value = Decimal.add(genericBuyable.amount.value, 1);
|
genericBuyable.amount.value = Decimal.add(genericBuyable.amount.value, 1);
|
||||||
}
|
}
|
||||||
this.onPurchase?.(cost);
|
genericBuyable.onPurchase?.(cost);
|
||||||
};
|
};
|
||||||
processComputable(buyable as T, "display");
|
processComputable(buyable as T, "display");
|
||||||
const display = buyable.display;
|
const display = buyable.display;
|
||||||
|
|
Loading…
Reference in a new issue