Fix oak trees never generating

This commit is contained in:
Wuzzy 2019-09-04 16:30:40 +02:00
parent c354424a7d
commit 6a596f5f11
4 changed files with 6 additions and 16 deletions

View File

@ -77,7 +77,7 @@ function default.grow_sapling(pos, variety)
z = pos.z - 2
},
minetest.get_modpath("default")
.. "/schematics/default_tree.mts", "0", {}, false)
.. "/schematics/default_appletree.mts", "0", {}, false)
elseif variety == "oak" then
minetest.place_schematic(
{
@ -86,12 +86,7 @@ function default.grow_sapling(pos, variety)
z = pos.z - 2
},
minetest.get_modpath("default")
.. "/schematics/default_tree.mts", "0",
{
["default:leaves"] = "default:leaves_oak",
["default:tree"] = "default:tree_oak",
["default:apple"] = "air"
}, false)
.. "/schematics/default_oaktree.mts", "0", {}, false)
elseif variety == "birch" then
minetest.place_schematic(
{

View File

@ -413,7 +413,7 @@ minetest.register_decoration(
biomes = {"Orchard"},
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("default")
.. "/schematics/default_tree.mts",
.. "/schematics/default_appletree.mts",
y_min = 10,
y_max = 32000,
})
@ -432,7 +432,7 @@ minetest.register_decoration(
["default:apple"] = "air",
},
schematic = minetest.get_modpath("default")
.. "/schematics/default_tree.mts",
.. "/schematics/default_appletree.mts",
y_min = -32000,
y_max = 32000,
})
@ -477,7 +477,7 @@ minetest.register_decoration(
["default:apple"] = "air",
},
schematic = minetest.get_modpath("default")
.. "/schematics/default_tree.mts",
.. "/schematics/default_appletree.mts",
y_min = -32000,
y_max = 32000,
})
@ -490,13 +490,8 @@ minetest.register_decoration(
fill_ratio = 0.004,
biomes = {"Wilderness"},
flags = "place_center_x, place_center_z",
replacements = {
["default:leaves"] = "default:leaves_oak",
["default:tree"] = "default:tree_oak",
["default:apple"] = "air",
},
schematic = minetest.get_modpath("default")
.. "/schematics/default_tree.mts",
.. "/schematics/default_oaktree.mts",
y_min = -32000,
y_max = 32000,
})

Binary file not shown.