minetest.line of sight

Description
Returns true/false, pos
 * Check if there is a direct line of sight between pos1 and pos2
 * Returns the position of the blocking node when false
 * pos1 First position
 * pos2 Second position
 * stepsize smaller gives more accurate results but requires more computing time. Default is 1.