fix crash when grow trees

This commit is contained in:
crabman77 2016-12-03 18:52:30 +01:00
parent 44a4b66c00
commit 96dea33e89
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,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") --IMPORTANT new function only 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 "..