mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-09 17:03:58 +01:00
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:
parent
2838f0125f
commit
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
|
||||
|
Loading…
Reference in New Issue
Block a user