Browse Source

[nalc_mediterranean] Add bonemeal support

master
sys4 2 months ago
parent
commit
559e0414ab
2 changed files with 10 additions and 1 deletions
  1. +9
    -0
      nalc_mediterranean/init.lua
  2. +1
    -1
      nalc_mediterranean/mod.conf

+ 9
- 0
nalc_mediterranean/init.lua View File

@@ -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
- 1
nalc_mediterranean/mod.conf View File

@@ -1,3 +1,3 @@
name = nalc_mediterranean
depends = default
optional_depends = snow
optional_depends = snow,bonemeal

Loading…
Cancel
Save