mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Update ShopManager.java
Former-commit-id: 4f88e90e30cd5720de3d8d05a44c127488a5b549 [formerly ff6951edec52dc0ad3315dc6616ca5204ae8880b] Former-commit-id: 73e51841ee624fc75deb72c8b2d5065f8d7202c7
This commit is contained in:
1 parent
628ca930aa
commit
046504a514
1 file changed
+1
-1
@@ -472,7 +472,7 @@ public class ShopManager {
|
||||
amount = Math.min(amount, (int) Math.floor(balance / price));
|
||||
if (amount < 1) {
|
||||
// when typed 'all' but player can't buy any items
|
||||
if (shopHaveItems < 1) {
|
||||
if (shopHaveItems == 0) {
|
||||
// but also the shop's stock is 0
|
||||
p.sendMessage(MsgUtil.getMessage("shop-stock-too-low", p, "" + shop.getRemainingStock(), Util.getItemStackName(shop.getItem())));
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user