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:
parent
453ea91778
commit
374e6b69ac
|
@ -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 "..
|
||||
|
|
Loading…
Reference in New Issue
Block a user