1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-02-27 16:20:20 +01:00

fix crash when grow trees

This commit is contained in:
crabman77 2016-12-03 18:52:30 +01:00
parent 44a4b66c00
commit 96dea33e89

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 "..