Check if node is actually loaded before querying get_meta()

Known to cause a segfault in engine sometimes.
master
orwell96 2017-02-05 22:54:31 +01:00
parent d84c23f084
commit 3f54727e4f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function ac.run_in_env(pos, evtdata, customfct_p)
end
local meta
if minetest.get_node(pos) then
if minetest.get_node_or_nil(pos) then
meta=minetest.get_meta(pos)
end