Do the same with grow_sapling; fix missing instances of after_place_leaves

This commit is contained in:
Pedro Gimeno 2019-06-06 22:08:44 +02:00 committed by SmallJoker
parent aa1c0546b7
commit 3e6f71ed79

View file

@ -230,6 +230,11 @@ local function after_place_leaves(...)
return default.after_place_leaves(...)
end
-- Required wrapper to allow customization of default.grow_sapling
local function grow_sapling(...)
return default.grow_sapling(...)
end
--
-- Stone
--
@ -676,7 +681,7 @@ minetest.register_node("default:sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
@ -837,7 +842,7 @@ minetest.register_node("default:junglesapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
@ -873,7 +878,7 @@ minetest.register_node("default:emergent_jungle_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
@ -951,7 +956,7 @@ minetest.register_node("default:pine_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
@ -1031,7 +1036,7 @@ minetest.register_node("default:acacia_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
@ -1109,7 +1114,7 @@ minetest.register_node("default:aspen_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-3 / 16, -0.5, -3 / 16, 3 / 16, 0.5, 3 / 16}
@ -1668,9 +1673,7 @@ minetest.register_node("default:bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = function(...)
return default.grow_sapling(...)
end,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}
@ -1737,7 +1740,7 @@ minetest.register_node("default:blueberry_bush_leaves", {
end
end,
after_place_node = default.after_place_leaves,
after_place_node = after_place_leaves,
})
minetest.register_node("default:blueberry_bush_sapling", {
@ -1749,7 +1752,7 @@ minetest.register_node("default:blueberry_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}
@ -1820,7 +1823,7 @@ minetest.register_node("default:acacia_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-3 / 16, -0.5, -3 / 16, 3 / 16, 2 / 16, 3 / 16}
@ -1879,7 +1882,7 @@ minetest.register_node("default:pine_bush_needles", {
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
after_place_node = after_place_leaves,
})
minetest.register_node("default:pine_bush_sapling", {
@ -1891,7 +1894,7 @@ minetest.register_node("default:pine_bush_sapling", {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
on_timer = default.grow_sapling,
on_timer = grow_sapling,
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 2 / 16, 4 / 16}