Hotfix: Buying an item now saves data properly
This commit is contained in:
parent
659fdab609
commit
927e306e9a
|
@ -82,6 +82,7 @@ export const BuyCommand = new Command({
|
||||||
channel.send('Not enough Mons!');
|
channel.send('Not enough Mons!');
|
||||||
} else {
|
} else {
|
||||||
user.money -= cost;
|
user.money -= cost;
|
||||||
|
Storage.save();
|
||||||
item.run(message, cost, amount);
|
item.run(message, cost, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue