230231232233234235236237238239240
Slot selected = inventory.getQuickbar().getSelectedSlot(); ItemStack drop = selected.get(); if (drop == null) { return; } else { drop = drop.clone().setAmount(1); } selected.addAmount(-1); dropItem(drop); } }
491492493494495496497498499500501
} if (get.getAmount() == 1) { getHuman().dropItem(get); args.getSlot().set(null); } else { getHuman().dropItem(get.clone().setAmount(1)); args.getSlot().addAmount(-1); } return true; case CTRL_DROP: if (args.getSlot().get() == null) {