[nalc_mediterranean] Add bonemeal support
This commit is contained in:
		| @@ -423,6 +423,15 @@ minetest.register_decoration({ | ||||
| 		flags = "place_center_x, place_center_z", | ||||
| }) | ||||
|  | ||||
| -- Support bonemeal | ||||
| if minetest.get_modpath("bonemeal") then | ||||
| 	local g_saplings = {} | ||||
| 	for _, tree in pairs(trees) do | ||||
| 		table.insert(g_saplings, {tree.sapling, grow_sapling, "soil"}) | ||||
| 	end | ||||
| 	bonemeal:add_sapling(g_saplings) | ||||
| end | ||||
|  | ||||
| minetest.log("action", "[nalc_mediterranean] loaded.") | ||||
|  | ||||
| -- local mts_save = function(name, schematic) | ||||
|   | ||||
| @@ -1,3 +1,3 @@ | ||||
| name = nalc_mediterranean | ||||
| depends = default | ||||
| optional_depends = snow | ||||
| optional_depends = snow,bonemeal | ||||
|   | ||||
		Reference in New Issue
	
	Block a user