thePlayer.inventory.setItemStack( ModUtil.notEmpty( held ) ? held : ModUtil.getEmptyStack() );
}
}
else if ( ModUtil.notEmpty( held ) && !slot.getHasStack() && slot.isItemValid( held ) )
{
<BUG>final ItemStack newStackSlot = held.copy();
</BUG>
ModUtil.setStackSize( newStackSlot, 1 );
<BUG>ModUtil.adjustStackSize( held, -1 );
</BUG>
slot.putStack( newStackSlot );

thePlayer.inventory.setItemStack( ModUtil.notEmpty( held ) ? held : ModUtil.getEmptyStack() );
}
}
else if ( ModUtil.notEmpty( held ) && !slot.getHasStack() && slot.isItemValid( held ) )
{
final ItemStack newStackSlot = ModUtil.copy( held );
ModUtil.setStackSize( newStackSlot, 1 );
ModUtil.adjustStackSize( ModUtil.nonNull( held ), -1 );
