From 42a364b81896bda1f469176e67de8085f062028f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 23 Aug 2014 17:59:32 -0400 Subject: quick hack to prevent crash in load_position() call if given a set of coords that are out of valid range --- common.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.lua b/common.lua index 5ccf7d5..b50b733 100755 --- a/common.lua +++ b/common.lua @@ -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 -- cgit v1.2.3