Merge pull request #2 from VanessaE/master

various fixes
Make lights use minetest's 6d facedir prediction code
via a small wrapper routine that also checks for protection and infinite stacks