mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 10:35:15 +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());
|
||||
int possessedItemCount = InventoryUtil.countItems(itemsFit);
|
||||
if (possessedItemCount <= 0) {
|
||||
event.setCancelled(NOT_ENOUGH_STOCK_IN_CHEST);
|
||||
event.setCancelled(NOT_ENOUGH_SPACE_IN_CHEST);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user