Enhanced minetest.line_of_sight()
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Looking recently at kaeza's kutils.find_pointed_thing() code just
gave me the idea that it could be very helpful for some mods if minetest.line_of_sight()
would return the actual blocking node position instead of just false.
From what I can make of ServerEnvironment::line_of_sight() it should not cost any additional
overhead to do so.
I would submit a pull request but I am not familiar with how this routine integrates with
the lua api. I also know that this has just recently been fixed 'again' so I wouldn't want
to mess things up.
gave me the idea that it could be very helpful for some mods if minetest.line_of_sight()
would return the actual blocking node position instead of just false.
From what I can make of ServerEnvironment::line_of_sight() it should not cost any additional
overhead to do so.
I would submit a pull request but I am not familiar with how this routine integrates with
the lua api. I also know that this has just recently been fixed 'again' so I wouldn't want
to mess things up.