private void removeItemFromIndex(int sel, int amount) {
        if (sel >= items.size()) return;
        ItemStack stack = getItemStack(sel);
        int amt = (amount <= stack.getAmount() ? amount : stack.getAmount());
        stack.removeItem(amt);
        if (stack.getAmount() <= 0) removeItemStack(stack);
    }