quick hack to prevent crash in load_position() call if given a set of

coords that are out of valid range
This commit is contained in:
Vanessa Ezekowitz 2014-08-23 17:59:32 -04:00
parent 2838f0125f
commit 42a364b818
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ end
---------
function minetest.load_position(pos)
if pos.x < -30912 or pos.y < -30912 or pos.z < -30912 or
pos.x > 30927 or pos.y > 30927 or pos.z > 30927 then return end
if minetest.get_node_or_nil(pos) then
return
end