diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-08-23 17:59:32 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-08-23 17:59:32 -0400 |
commit | 42a364b81896bda1f469176e67de8085f062028f (patch) | |
tree | 709c2675b1fb4570bc7c6537cbec5ca4b53c8198 | |
parent | 2838f0125f8278f72088e683dbfbe3fb43af16de (diff) | |
download | pipeworks-42a364b81896bda1f469176e67de8085f062028f.tar pipeworks-42a364b81896bda1f469176e67de8085f062028f.tar.gz pipeworks-42a364b81896bda1f469176e67de8085f062028f.tar.bz2 pipeworks-42a364b81896bda1f469176e67de8085f062028f.tar.xz pipeworks-42a364b81896bda1f469176e67de8085f062028f.zip |
quick hack to prevent crash in load_position() call if given a set of
coords that are out of valid range
-rwxr-xr-x | common.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |