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

coords that are out of valid range
此提交包含在:
Vanessa Ezekowitz
2014-08-23 17:59:32 -04:00
父節點 2838f0125f
當前提交 42a364b818

查看文件

@@ -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