1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-06 02:20:24 +01:00

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

View File

@ -43,7 +43,8 @@ function default.grow_sapling(pos)
return return
end 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) local node = minetest.get_node(pos)
if node.name == "default:sapling" then if node.name == "default:sapling" then
minetest.log("action", "A sapling grows into a tree at ".. minetest.log("action", "A sapling grows into a tree at "..