Only take amount specified by user in improvement

This commit is contained in:
joeyahines committed 2025-12-06 16:41:49 -07:00
1 parent d03f33ea6d
commit 68711f9ee6
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ pub async fn buy_improvement(
User::try_take_funds(
&ctx.data().db,
ctx.author().id,
improvement_type.price() as u32,
amount,
)?;
let (has_improved, _) =