Leafdecay: Register leafdecay for bush leaves
authorparamat <mat.gregory@virginmedia.com>
Thu, 9 Mar 2017 20:18:58 +0000 (20:18 +0000)
committerparamat <mat.gregory@virginmedia.com>
Sun, 12 Mar 2017 10:20:26 +0000 (10:20 +0000)
mods/default/nodes.lua

index 67790dd6ad06c2f9bea0452067f2b7ab6139a15c..1eb2f30524adc0e1c8456afdddc39d29e70aa9d7 100644 (file)
@@ -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,
+})