From: paramat Date: Thu, 9 Mar 2017 20:18:58 +0000 (+0000) Subject: Leafdecay: Register leafdecay for bush leaves X-Git-Tag: 0.4.16~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07a5fca432747043b3df067d4703b471072dce77;p=oweals%2Fminetest_game.git Leafdecay: Register leafdecay for bush leaves --- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 67790dd6..1eb2f305 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1308,6 +1308,8 @@ minetest.register_node("default:bush_leaves", { paramtype = "light", groups = {snappy = 3, flammable = 2, leaves = 1}, sounds = default.node_sound_leaves_defaults(), + + after_place_node = default.after_place_leaves, }) minetest.register_node("default:acacia_bush_stem", { @@ -1335,6 +1337,8 @@ minetest.register_node("default:acacia_bush_leaves", { paramtype = "light", groups = {snappy = 3, flammable = 2, leaves = 1}, sounds = default.node_sound_leaves_defaults(), + + after_place_node = default.after_place_leaves, }) @@ -2200,3 +2204,15 @@ default.register_leafdecay({ leaves = {"default:aspen_leaves"}, radius = 2, }) + +default.register_leafdecay({ + trunks = {"default:bush_stem"}, + leaves = {"default:bush_leaves"}, + radius = 1, +}) + +default.register_leafdecay({ + trunks = {"default:acacia_bush_stem"}, + leaves = {"default:acacia_bush_leaves"}, + radius = 1, +})