From 75bc208651a01c0a33372f5ac44a12ac40f33fb4 Mon Sep 17 00:00:00 2001 From: moif <104588768+AW0005@users.noreply.github.com> Date: Sun, 11 Feb 2024 09:08:19 -0500 Subject: [PATCH] hotfix(shops): round up shop purchase quantity (#829) --- app/Services/ShopManager.php | 2 +- config/lorekeeper/settings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ShopManager.php b/app/Services/ShopManager.php index 794342dd00..15b23814d7 100644 --- a/app/Services/ShopManager.php +++ b/app/Services/ShopManager.php @@ -33,7 +33,7 @@ public function buyStock($data, $user) DB::beginTransaction(); try { - $quantity = $data['quantity']; + $quantity = ceil($data['quantity']); if(!$quantity || $quantity == 0) throw new \Exception("Invalid quantity selected."); // Check that the shop exists and is open diff --git a/config/lorekeeper/settings.php b/config/lorekeeper/settings.php index ef3d138b2b..c50c51c149 100644 --- a/config/lorekeeper/settings.php +++ b/config/lorekeeper/settings.php @@ -24,7 +24,7 @@ | Do not change this value! | */ - 'version' => '2.1.3', + 'version' => '2.1.4', /* |--------------------------------------------------------------------------