if (funnel.canInsertItem(0, playerStack, 1)) {
funnel.setInventorySlotContents(0, playerStack.splitStack(1));
if (playerStack.stackSize <= 0)
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, null);
funnel.markDirty();
return true;
}
} else {
if (!par5EntityPlayer.inventory.addItemStackToInventory(stack))
par5EntityPlayer.dropPlayerItemWithRandomChoice(stack, false);