mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-17 10:41:26 +01:00
Send correct message when shop is full. (Fixes #95)
This commit is contained in:
parent
fe68f20997
commit
4fd2bcb836
@ -145,7 +145,7 @@ public class PartialTransactionModule implements Listener {
|
|||||||
ItemStack[] itemsFit = getItemsThatFit(event.getStock(), event.getOwnerInventory());
|
ItemStack[] itemsFit = getItemsThatFit(event.getStock(), event.getOwnerInventory());
|
||||||
int possessedItemCount = InventoryUtil.countItems(itemsFit);
|
int possessedItemCount = InventoryUtil.countItems(itemsFit);
|
||||||
if (possessedItemCount <= 0) {
|
if (possessedItemCount <= 0) {
|
||||||
event.setCancelled(NOT_ENOUGH_STOCK_IN_CHEST);
|
event.setCancelled(NOT_ENOUGH_SPACE_IN_CHEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user