Send correct message when shop is full. (Fixes #95)

This commit is contained in:
Phoenix616 2018-01-09 19:55:37 +01:00
parent fe68f20997
commit 4fd2bcb836

View File

@ -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;
}