fix crash on undefined function (new in > 0.4.14 stable?)

This commit is contained in:
crabman77 2016-08-16 12:41:39 +02:00
parent 453ea91778
commit 374e6b69ac
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ function default.grow_sapling(pos)
return
end
local mg_name = minetest.get_mapgen_setting("mg_name")
--local mg_name = minetest.get_mapgen_setting("mg_name") --new function in > 0.4.14 stable ???
local mg_name = minetest.get_mapgen_params().mgname
local node = minetest.get_node(pos)
if node.name == "default:sapling" then
minetest.log("action", "A sapling grows into a tree at "..