Don't try and stack non stackable items.

This commit is contained in:
Brianna 2020-04-06 17:32:39 -04:00
parent dd01f22dc9
commit c760238600
2 changed files with 1 additions and 1 deletions

View File

@ -95,6 +95,7 @@ public class ItemListeners implements Listener {
Item item = event.getItem();
ItemStack stack = item.getItemStack();
if (stack.getMaxStackSize() == 1) return;
int amount = UltimateStacker.getActualItemAmount(item);
if (amount < (stack.getMaxStackSize() / 2)) return;

View File

@ -13,7 +13,6 @@ import org.bukkit.entity.*;
import org.bukkit.inventory.EntityEquipment;
import java.util.*;
import java.util.stream.Collectors;
public class EntityUtils {