Fix error that prevented selling to admin shops

This commit is contained in:
Phoenix616 2019-04-07 13:47:18 +01:00
parent 8a09e91e62
commit 53ae07b779

View File

@ -138,7 +138,7 @@ public class InventoryUtil {
public static boolean fits(ItemStack item, Inventory inventory) {
int left = item.getAmount();
if (inventory.getMaxStackSize() == Integer.MAX_VALUE) {
if (inventory.getSize() == Integer.MAX_VALUE) {
return true;
}