]> git.lizzy.rs Git - minetest.git/commit
Pointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)
authorParamat <paramat@users.noreply.github.com>
Wed, 16 May 2018 19:49:46 +0000 (20:49 +0100)
committerGitHub <noreply@github.com>
Wed, 16 May 2018 19:49:46 +0000 (20:49 +0100)
commit45e48295d203b653041404a75c6e2744b78ced45
treeaaf7ee4d2726a9379489d2cc6ecc059af2a8f8c2
parent04f79623a7276a5a09390ac910795ab6c1889dee
Pointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)

Avoid crash in some situations when player is inside a node, causing
'above' to equal 'under'.
In this situation return 'under' which is the node position very close
to the face position that would normally be returned.
builtin/common/misc_helpers.lua